/* ───────── 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 ── */
.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 ── */
.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;
}

/* ───────── 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;
}

/* ───────── BANNERS ───────── */
.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;
}
.banner-success {
  background: var(--accent-dim);
  border: 1px solid var(--border2);
  color: #90dfa0;
}

/* ───────── FORGOT LINK ───────── */
.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 20px;
  margin-top: -8px;
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--accent); }

/* ───────── 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;
}

/* ───────── 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); }

/* ───────── DECO STATS ───────── */
.deco-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.deco-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.deco-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.deco-stat-lbl {
  font-size: 11px;
  color: var(--text2);
}

/* ───────── DECO FEATURES ───────── */
.deco-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deco-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
}
.fi { font-size: 18px; }

/* ───────── FORGOT PASSWORD MODAL ───────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text3); font-size: 16px;
  cursor: pointer; padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}

/* ───────── 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; }
  .modal { padding: 24px 20px; }
  .deco-stats { grid-template-columns: 1fr 1fr; }
}
