/* Authentication Pages Specific Styles (Login & Register) */
:root {
  --primary-color: #29786E;
  --primary-dark: #0f4b43;
  --primary-light: #91c9c1;
  --secondary-color: #1e1e1c;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --gray-100: #f7f9fa;
  --gray-200: #f0f2f3;
  --gray-300: #d1d7dc;
  --gray-400: #94a3b8;
  --gray-500: #6a6f73;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1c1d1f;
  --gray-900: #0f172a;
  --border-radius: 4px;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Auth Section */
.auth-section {
  padding: 2rem 0;
  background-color: var(--gray-100);
  min-height: calc(100vh - 70px); /* Adjust based on your header height */
  display: flex;
  align-items: center;
}

/* Compact Auth Container */
.compact-auth-container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.auth-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.auth-header p {
  font-size: 1rem;
  color: var(--gray-600);
  margin: 0;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
}

.input-group {
  display: flex;
  position: relative;
}

.input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
  color: var(--gray-500);
}

.input-group input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(164, 53, 240, 0.1);
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--gray-700);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

/* Compact Role Selection */
.compact-role-selection {
  margin-top: 0.25rem;
}

.role-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.role-tab {
  flex: 1;
  position: relative;
}

.role-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-tab label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.role-tab label:hover {
  border-color: var(--primary-light);
  background-color: rgba(164, 53, 240, 0.02);
}

.role-tab input[type="radio"]:checked + label,
.role-tab label.selected {
  border-color: var(--primary-color);
  background-color: rgba(164, 53, 240, 0.05);
}

.role-tab i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.role-tab span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Checkbox */
.terms-check {
  margin-top: 0.25rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  accent-color: var(--primary-color);
}

.checkbox label {
  font-size: 0.75rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.4;
}

.checkbox a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.checkbox a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 0.75rem 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--gray-300);
}

.auth-divider span {
  position: relative;
  background-color: white;
  padding: 0 0.75rem;
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  padding: 0;
  transition: all 0.2s ease;
}

.btn-google {
  background-color: white;
  border: 1px solid var(--gray-300);
  color: #ea4335;
}

.btn-google:hover {
  background-color: #fef2f2;
  border-color: #ea4335;
}

.btn-facebook {
  background-color: white;
  border: 1px solid var(--gray-300);
  color: #1877f2;
}

.btn-facebook:hover {
  background-color: #eff6ff;
  border-color: #1877f2;
}

.btn-apple {
  background-color: white;
  border: 1px solid var(--gray-300);
  color: #000000;
}

.btn-apple:hover {
  background-color: #f8fafc;
  border-color: #000000;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.auth-footer p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

/* Alert Styling */
.alert {
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #15803d;
}

.alert i {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
  .auth-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 1.25rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-header p {
    font-size: 0.875rem;
  }
}

/* Additional styles for login page */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-sidebar {
    display: none;
  }
}

.auth-content {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
}

.auth-sidebar {
  display: flex;
  align-items: center;
}

.auth-benefits {
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.75rem;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-benefits h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: white;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefits-list li {
  display: flex;
  gap: 1rem;
}

.benefits-list i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.benefits-list h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: white;
}

.benefits-list p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.8;
}

/* Testimonial */
.testimonial {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-content {
  position: relative;
}

.testimonial-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-content p::before {
  content: '"';
  font-size: 2.5rem;
  line-height: 0;
  position: absolute;
  top: -0.5rem;
  left: -1rem;
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.testimonial-author p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.8;
}
