/* ===== AUTH BODY ===== */
.auth-body { background: var(--bg-900); min-height: 100vh; }

/* ===== STEP TRANSITIONS ===== */
.auth-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.auth-step.active {
  display: block;
  animation: stepIn 0.28s var(--ease) forwards;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== VERIFY ICON ===== */
.verify-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.verify-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-veil);
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  color: var(--brand-2);
  animation: iconPulse 2.4s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,26,0); }
  50%       { box-shadow: 0 0 0 8px rgba(255,106,26,0.08); }
}

/* ===== OTP INPUT ===== */
.otp-wrap { position: relative; }
.otp-input {
  width: 100% !important;
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.6rem !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 14px 16px !important;
  background: var(--bg-2) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--r-lg) !important;
  caret-color: var(--brand);
  color: var(--ink-1) !important;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease) !important;
}
.otp-input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-glow) !important;
  outline: none !important;
}
.otp-input::placeholder { color: var(--ink-4) !important; letter-spacing: 0.3em; }

/* ===== VERIFY FOOTER ===== */
.verify-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.verify-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.verify-back:hover { color: var(--text-primary); }

.resend-btn {
  font-size: 0.82rem;
  color: var(--brand-2);
  transition: color 0.15s, opacity 0.15s;
}
.resend-btn:disabled { opacity: 0.4; cursor: not-allowed; color: var(--ink-3); }
.resend-btn:not(:disabled):hover { color: var(--brand-3); }

/* ===== BUTTON SPINNER ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin { animation: spin 0.75s linear infinite; }

/* ===== AUTH LAYOUT ===== */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* ===== AUTH LEFT ===== */
.auth-left {
  background: linear-gradient(135deg, #141416 0%, #121011 50%, #0b0b0c 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 48px;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(249,115,22,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.15s;
  position: relative; z-index: 1;
}
.auth-back:hover { color: var(--text-primary); }

.auth-left-content {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}
.auth-left-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--radius-xl);
  color: var(--purple-400);
  margin-bottom: 24px;
}
.auth-left-title {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.auth-left-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

.auth-feature-list {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  list-style: none;
}
.auth-feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.feat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple-400);
  flex-shrink: 0;
}

/* ===== AUTH RIGHT ===== */
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background: var(--bg-900);
}

.auth-card {
  width: min(400px, 100%);
}
.auth-card-title {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.auth-card-sub {
  font-size: 0.875rem; color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-form { margin-bottom: 20px; }

.forgot-link {
  font-size: 0.8rem;
  color: var(--purple-400);
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--purple-300); }

/* ===== PASSWORD STRENGTH ===== */
.pw-strength {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pw-bar {
  width: 100%;
  height: 5px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.pw-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.pw-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}
.pw-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.pw-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--ink-4);
  transition: color 0.2s;
}
.pw-hint.met { color: var(--green-400); }
.pw-hint svg { flex-shrink: 0; }

/* ===== AUTH FOOTER ===== */
.auth-switch {
  font-size: 0.85rem; color: var(--text-secondary);
  text-align: center; margin-bottom: 12px;
}
.auth-switch a { color: var(--purple-400); font-weight: 500; }
.auth-switch a:hover { color: var(--purple-300); }

.auth-terms {
  font-size: 0.75rem; color: var(--text-muted);
  text-align: center; line-height: 1.5;
}
.auth-terms a { color: var(--text-secondary); text-decoration: underline; }