/* ───────── GLOBAL BACKGROUND ───────── */
body {
  margin: 0;
  background: #050908;
  color: #e6f1ec;
  overflow-x: hidden;
}

/* ── Noise texture (subtle grain) ── */
.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-light.png");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── Main radial glow ── */
.bg-radial {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(56, 210, 90, 0.18) 0%,
    transparent 65%
  );
  z-index: 0;
}

/* ── Moving gradient glow (premium feel) ── */
.bg-animated {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(56, 210, 90, 0.08),
    transparent,
    rgba(56, 210, 90, 0.05)
  );
  background-size: 200% 200%;
  animation: moveGlow 12s ease infinite;
  z-index: 0;
}

@keyframes moveGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Grid lines (tech look) ── */
.bg-lines {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  z-index: 0;
}

/* ── Ensure UI stays above background ── */
.auth-root {
  position: relative;
  z-index: 1;
}
/* ───────── AUTH LAYOUT ───────── */
.auth-root {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.auth-panel {
  flex: 0 0 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-right: 1px solid var(--border);
}

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

/* ───────── BRAND ───────── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 36px;
}
.auth-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* ───────── HEADINGS ───────── */
.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}

/* ───────── ERROR BANNER ───────── */
.banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 20px;
}
.banner.show { display: flex; }
.banner-error {
  background: var(--red-dim);
  border: 1px solid rgba(224,72,72,0.25);
  color: #f0a0a0;
}

/* ───────── SECTION LABEL ───────── */
.section-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 20px;
}

/* ───────── ROLE SELECTOR ───────── */
.role-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.role-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.role-opt:hover { border-color: var(--border2); color: var(--text); }
.role-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.role-icon { font-size: 20px; }

/* ───────── PLAN SELECTOR ───────── */
.plan-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.plan-opt {
  flex: 1;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.plan-opt:hover { border-color: var(--border2); }
.plan-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.plan-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 4px;
}
.plan-name  { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.plan-price { font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.plan-desc  { font-size: 11px; color: var(--text3); }

/* ───────── PASSWORD WRAP ───────── */
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  padding: 0; line-height: 1;
}

/* ───────── STRENGTH BAR ───────── */
.strength-bar {
  height: 3px;
  background: var(--bg4);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.3s, background 0.3s;
}
.strength-label {
  font-size: 11px;
  margin-top: 4px;
  transition: color 0.3s;
}

/* ───────── TERMS ───────── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 20px;
  margin-top: 4px;
}
.terms-row input { margin-top: 2px; accent-color: var(--accent); }
.terms-row a { color: var(--accent); text-decoration: none; }
.terms-row a:hover { text-decoration: underline; }

/* ───────── BTN SPINNER ───────── */
.btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #050908;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ───────── FOOTER ───────── */
.auth-footer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  line-height: 1.8;
}
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ───────── RIGHT DECO PANEL ───────── */
.auth-deco {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.deco-inner { max-width: 440px; }
.deco-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.deco-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 36px;
}
.deco-title .g { color: var(--accent); }

/* ───────── STEP LIST ───────── */
.step-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.step-list li { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.step-desc  { font-size: 12px; color: var(--text2); }

/* ───────── XP PREVIEW ───────── */
.xp-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border2);
  background: var(--accent-dim);
}
.xp-icon { font-size: 28px; }
.xp-text-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.xp-text-sub   { font-size: 12px; color: var(--text2); }
.xp-text-sub span { color: var(--accent); font-weight: 600; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 900px) {
  .auth-deco { display: none; }
  .auth-panel { flex: 1; border-right: none; }
}
@media (max-width: 480px) {
  .auth-panel { padding: 32px 20px; }
  .plan-selector { flex-direction: column; }
  .role-selector { gap: 6px; }
}
