/* ============================================================
   Auth & Registration — Part 4
   ============================================================ */

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.auth-page {
  min-height: calc(100vh - 65px);
  display: flex;
}

/* ── Login split ───────────────────────────────────────────── */
.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: calc(100vh - 65px);
}

@media (min-width: 992px) {
  .auth-split {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-panel-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  background: var(--bg-body);
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-panel-visual {
  display: none;
  position: relative;
  background: linear-gradient(160deg, var(--chad-blue) 0%, var(--navy) 45%, #0d2847 100%);
  color: var(--white);
  padding: var(--space-12);
  overflow: hidden;
}

.auth-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.auth-panel-visual .auth-visual-content {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .auth-panel-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.auth-panel-visual::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 203, 0, 0.2) 0%, transparent 65%);
  top: -120px;
  left: -80px;
}

.auth-panel-visual::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 12, 48, 0.15) 0%, transparent 70%);
  bottom: -60px;
  right: -40px;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.auth-visual-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--chad-yellow);
  margin-bottom: var(--space-6);
}

.auth-visual-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.auth-visual-stat {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-visual-stat strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--chad-yellow);
}

.auth-visual-stat span {
  font-size: var(--text-xs);
  opacity: 0.8;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.social-login-btn:hover {
  border-color: var(--chad-blue);
  color: var(--chad-blue);
}

/* ── Wizard ────────────────────────────────────────────────── */
.wizard-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.wizard-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.wizard-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--bg-body));
}

.wizard-page {
  padding: var(--space-10) 0 var(--space-16);
  background: var(--bg-body);
  min-height: calc(100vh - 65px);
}

.wizard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.wizard-progress-wrap {
  padding: var(--space-8) var(--space-8) 0;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-color);
}

.wizard-progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--chad-blue), var(--chad-yellow));
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-4);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 72px;
  text-align: center;
  opacity: 0.45;
  transition: opacity var(--duration-normal);
}

.wizard-step.active,
.wizard-step.completed {
  opacity: 1;
}

.wizard-step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--duration-normal);
}

.wizard-step.active .wizard-step-icon {
  background: var(--chad-blue);
  border-color: var(--chad-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.wizard-step.completed .wizard-step-icon {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--white);
}

.wizard-step-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (min-width: 576px) {
  .wizard-step-label {
    font-size: var(--text-xs);
  }
}

.wizard-body {
  padding: var(--space-8);
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: wizardFadeIn 0.35s var(--ease-out);
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--border-color);
  background: var(--bg-muted);
}

.review-block {
  padding: var(--space-4);
  background: var(--bg-muted);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}

.review-block h6 {
  color: var(--chad-blue);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px dashed var(--border-color);
}

.review-row:last-child {
  border-bottom: none;
}

.review-row span:first-child {
  color: var(--text-muted);
}

.review-row span:last-child {
  font-weight: 600;
  text-align: end;
}

.upload-preview-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.upload-preview-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  color: var(--text-secondary);
}

.password-toggle-wrap {
  position: relative;
}

.password-toggle-wrap .toggle-pw {
  position: absolute;
  top: 50%;
  inset-inline-end: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1);
}

.password-toggle-wrap .form-nyp-control {
  padding-inline-end: 2.75rem;
}
