/* frontend/css/pages/auth.css
   Split-screen login, register, doctor-register, onboarding layouts
*/

/* ─── Auth Layout (split-screen) ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-hero {
  background: linear-gradient(145deg, #0a0f1e 0%, #0d2137 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-16);
  min-height: 100vh;
}
.auth-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 30% 40%, rgba(20,184,166,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(59,130,246,0.06) 0%, transparent 60%);
}
.auth-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: luminosity;
}
.auth-hero-content { position: relative; z-index: 1; }
.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: rgba(20,184,166,0.15);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--sp-6);
}
.auth-hero h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #fff;
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}
.auth-hero p { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: var(--sp-8); }
.auth-trust-items { display: flex; flex-direction: column; gap: var(--sp-3); }
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.auth-trust-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: rgba(20,184,166,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ─── Auth Form Panel ─────────────────────────────────────────────────────── */
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16) var(--sp-12);
  background: var(--c-bg);
  overflow-y: auto;
}
.auth-panel-inner { max-width: 440px; width: 100%; margin-inline: auto; }
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: var(--sp-10);
  display: block;
}
.auth-title { font-size: 1.6rem; margin-bottom: var(--sp-2); }
.auth-subtitle { color: var(--c-text-muted); font-size: 0.9rem; margin-bottom: var(--sp-8); }
.auth-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--c-text-subtle);
  font-size: 0.78rem;
  margin-block: var(--sp-2);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-6);
}
.auth-switch a { color: var(--c-primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── Google Social Login Button ─────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--c-surface-2, #1e2433);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 120ms ease, box-shadow 200ms ease;
  text-decoration: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}
.btn-google::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(66,133,244,0.06) 0%, rgba(234,67,53,0.04) 100%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.btn-google:hover {
  border-color: rgba(66,133,244,0.5);
  background: var(--c-surface-3, #252b3b);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(66,133,244,0.15);
}
.btn-google:hover::before { opacity: 1; }
.btn-google:active { transform: translateY(0); }
.btn-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-google-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.social-auth-wrap {
  margin-bottom: var(--sp-5);
}
.auth-divider-text {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--c-text-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block: var(--sp-5);
}
.auth-divider-text::before,
.auth-divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ─── Multi-step Wizard (doctor-register, onboarding) ────────────────────── */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fade-in 200ms ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}
.step-indicator {
  font-size: 0.78rem;
  color: var(--c-text-subtle);
  text-align: center;
  margin-bottom: var(--sp-8);
}
.step-indicator strong { color: var(--c-primary); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { padding: var(--sp-10) var(--sp-6); min-height: 100vh; }
}
