/* ─── Auth Pages (Login / OTP) ─── */

.auth-section {
  padding-top: 0;
  padding-bottom: 80px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-header {
  margin-bottom: 32px;
}

.auth-card-header h2 {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.auth-card-header p {
  color: var(--charcoal-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

.auth-card-header p strong {
  color: var(--burgundy);
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form .btn-full {
  width: 100%;
  margin-top: 12px;
}

.auth-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 20px;
}

.auth-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--burgundy);
  margin-top: 4px;
  flex-shrink: 0;
}

.auth-form-checkbox label {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.7;
}

.auth-form-checkbox label a {
  color: var(--burgundy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form-checkbox label a:hover {
  color: var(--burgundy-light);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-alert-info {
  background: rgba(138, 154, 123, 0.12);
  color: var(--sage);
  border: 1px solid rgba(138, 154, 123, 0.25);
}

.auth-alert-error {
  background: rgba(107, 45, 60, 0.06);
  color: var(--burgundy);
  border: 1px solid rgba(107, 45, 60, 0.15);
}

.field-error {
  color: var(--burgundy);
  font-size: 0.8rem;
  margin-top: 6px;
  display: block;
}

.auth-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(107, 45, 60, 0.15) 0%,
    rgba(74, 31, 42, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
  color: var(--white);
}

.auth-visual-overlay .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

    .auth-visual-overlay h2 {
        font-family: var(--font-display);
        font-size: 2rem;
        margin: 0 0 10px;
        line-height: 1.3;
        color: white;
    }

    .auth-visual-overlay p {
        margin: 0;
        opacity: 0.9;
        font-size: 0.95rem;
        max-width: 320px;
        color: white;
    }

.auth-edit-link {
  text-align: center;
  margin-bottom: 24px;
}

.auth-edit-link a {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: color var(--transition);
}

.auth-edit-link a:hover {
  color: var(--burgundy);
}

/* OTP */
.otp-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otp-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--charcoal-light);
  border: 1px solid var(--cream-dark);
}

.otp-timer.expired {
  background: rgba(107, 45, 60, 0.06);
  color: var(--burgundy);
  border-color: rgba(107, 45, 60, 0.15);
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  direction: ltr;
  margin: 20px 0;
}

.otp-input {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  background: var(--cream);
  transition: all var(--transition);
  font-family: var(--font-body);
  color: var(--burgundy);
}

.otp-input:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107, 45, 60, 0.1);
}

.otp-input.error {
  border-color: var(--burgundy);
  background: rgba(107, 45, 60, 0.05);
}

.resend-form {
  margin-top: 12px;
}

.auth-debug-code {
  padding: 16px;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: center;
}

.auth-debug-code-header {
  font-size: 0.75rem;
  color: var(--charcoal-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.auth-debug-code-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5rem;
  font-family: monospace;
  color: var(--burgundy);
  cursor: pointer;
}

@media (max-width: 992px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-visual {
    min-height: 280px;
    order: -1;
  }

  .auth-visual-overlay {
    padding: 32px 24px;
  }

  .auth-visual-overlay h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }

  .otp-input {
    width: 42px;
    height: 50px;
    font-size: 1.25rem;
  }

  .otp-inputs {
    gap: 6px;
  }
}
