/* ============================================================
   DENTAL APP — AUTH PAGES (Login / Forgot Password)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sidebar-bg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

/* Background decorative circles */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.auth-page::before {
  width: 600px; height: 600px;
  background: var(--color-primary);
  top: -200px; right: -150px;
}
.auth-page::after {
  width: 400px; height: 400px;
  background: var(--color-accent);
  bottom: -100px; left: -100px;
}

/* Auth card */
.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  padding: var(--sp-10) var(--sp-10);
  position: relative;
  z-index: 1;
  animation: authCardIn 0.4s cubic-bezier(0.16,1,0.3,1);
}

@keyframes authCardIn {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Brand header */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-8);
  text-align: center;
}
.auth-logo {
  width: 260px;
}
.auth-company-name {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--color-primary-dark);
  margin-bottom: var(--sp-1);
}
.auth-company-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Auth headings */
.auth-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
}
.auth-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-8);
}

/* Form */
.auth-form {}
.auth-form .form-group { margin-bottom: var(--sp-5); }
.auth-form .form-label { font-weight: 600; }

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.auth-forgot {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--t-fast);
}
.auth-forgot:hover { color: var(--color-primary-dark); }

.auth-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-5);
}

/* Auth message area */
#auth-message {
  margin-bottom: var(--sp-5);
}

/* Back to login link */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--sp-5);
  transition: color var(--t-fast);
}
.auth-back:hover { color: var(--color-primary); }
.auth-back i { font-size: 0.9rem; }

/* OTP / Code input */
.otp-group {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.otp-input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: var(--font-mono);
  color: var(--color-primary-dark);
}
.otp-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,107,114,0.12);
}

/* Timer */
.otp-timer {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}
.otp-timer span { font-weight: 600; color: var(--color-primary); }
.otp-resend {
  background: none; border: none;
  color: var(--color-primary); font-size: var(--font-size-sm);
  font-weight: 600; cursor: pointer;
  display: none;
  font-family: var(--font-primary);
}
.otp-resend:hover { color: var(--color-primary-dark); text-decoration: underline; }
.otp-resend.visible { display: inline; }

/* Steps indicator for forgot password flow */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}
.auth-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
}
.auth-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  width: 100%; height: 2px;
  background: var(--color-border);
}
.auth-step.done::after,
.auth-step.active::after { background: var(--color-primary); }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  z-index: 1;
  transition: all var(--t-base);
}
.auth-step.active .step-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.auth-step.done .step-dot {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.step-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.auth-step.active .step-label { color: var(--color-primary); font-weight: 600; }

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--sp-8) var(--sp-6);
  }
}
