/* ============================================================
   VirtualNumPro — Auth Pages Stylesheet
   ============================================================ */

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

/* Left panel — branding */
.auth-left {
  position: relative;
  background: var(--bg-deep);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}

.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 0% 50%, black 0%, transparent 70%);
}

.auth-left-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-left-orb-1 {
  width: 400px; height: 400px;
  background: rgba(0,212,255,0.07);
  top: -100px; left: -100px;
}
.auth-left-orb-2 {
  width: 300px; height: 300px;
  background: rgba(0,255,136,0.05);
  bottom: -50px; right: -50px;
}

.auth-left-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.auth-left-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.auth-left-logo .logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.auth-left-logo .logo-text span { color: var(--accent-cyan); }

.auth-left-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.auth-left-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.auth-left-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 360px;
}

/* Feature list on left panel */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-feature-icon {
  width: 36px; height: 36px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.auth-feature-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Testimonial / stat strip at bottom */
.auth-left-footer {
  position: relative;
  z-index: 2;
}
.auth-stat-strip {
  display: flex;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.auth-stat-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.auth-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Right panel — form ───────────────────────────────────── */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

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

.auth-form-header {
  margin-bottom: 36px;
}
.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.auth-form-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Passkey button */
.passkey-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.passkey-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0,212,255,0.05);
  transform: translateY(-1px);
}
.passkey-btn:active {
  transform: translateY(0);
}
.passkey-btn .passkey-icon {
  font-size: 20px;
}
.passkey-btn.authenticating {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Or divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Password field with toggle */
.password-wrap {
  position: relative;
}
.password-wrap .form-control {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
  line-height: 1;
}
.password-toggle:hover { color: var(--text-secondary); }

/* Password strength */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  transition: background .3s;
}
.strength-bar.weak   { background: #f87171; }
.strength-bar.medium { background: var(--accent-amber); }
.strength-bar.strong { background: var(--accent-emerald); }
.strength-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Terms checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-label a { color: var(--accent-cyan); }

/* Submit button loading state */
.btn-submit {
  position: relative;
  min-height: 50px;
}
.btn-submit .btn-text { transition: opacity .2s; }
.btn-submit .btn-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-spinner { opacity: 1; }

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-switch a {
  color: var(--accent-cyan);
  font-weight: 600;
}
.auth-switch a:hover { color: var(--accent-emerald); }

/* Alert messages */
.auth-alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-alert.success {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  color: #86efac;
}
.auth-alert.error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}
.auth-alert.info {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: #7dd3fc;
}

/* Passkey availability badge */
.passkey-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-emerald);
  font-weight: 600;
}
.passkey-not-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 40px 24px;
    align-items: flex-start;
    padding-top: 60px;
  }
  .auth-form-wrap {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .auth-right {
    padding: 32px 20px;
  }
}
