/* Auth layout — split-screen on desktop, stacked on mobile */
.auth-body {
  background: var(--bg);
  min-height: 100dvh;
}

.auth-split {
  display: flex;
  min-height: 100dvh;
}

/* Left branded panel */
.auth-split__brand {
  display: none;
  flex: 0 0 45%;
  background: var(--surface);
  position: relative;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.auth-brand__logo {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: var(--font-extrabold);
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.auth-brand__tagline {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}

/* Right form panel */
.auth-split__form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.auth-wrapper {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  animation: fade-up 0.3s var(--ease-out);
}

.auth-card__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--accent);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.auth-card__subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
}

.auth-card .form-group {
  margin-bottom: var(--space-md);
}

.auth-card .flash {
  margin-bottom: var(--space-md);
}

/* Desktop: show split layout */
@media (min-width: 1024px) {
  .auth-split__brand {
    display: block;
  }

  .auth-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: var(--space-xl) 0;
  }
}

/* Mobile: branded header above form */
@media (max-width: 1023px) {
  .auth-split {
    flex-direction: column;
  }

  .auth-split__form {
    flex: 1;
    padding-top: var(--space-xl);
  }
}

/* ── Footer link ── */
.auth-card__footer {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-lg);
}

.auth-card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: text-decoration 0.2s ease;
}

.auth-card__link:hover {
  text-decoration: underline;
}

/* ── Onboarding step indicator ── */
.onboarding-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-xl);
}

.onboarding-steps__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: transparent;
  transition: all 0.2s ease;
}

.onboarding-steps__dot--done {
  background: var(--success);
  border-color: var(--success);
}

.onboarding-steps__dot--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.onboarding-steps__line {
  width: 48px;
  height: 2px;
  background: var(--border-subtle);
}

/* ═══════════════════════════════════════
   Light theme overrides
   ═══════════════════════════════════════ */
[data-theme="light"] .auth-split__brand {
  background-image: none;
}
