:root {
  color-scheme: dark;
  --bg: #070604;
  --panel: #141009;
  --panel-2: #1c160d;
  --line: rgba(245,210,122,.14);
  --line-2: rgba(255,255,255,.06);
  --text: #f7f2e6;
  --muted: #b0a68f;
  --dim: #776e58;
  --gold: #e8b84b;
  --gold-lt: #f7e3a1;
  --gold-dp: #b8842a;
  --gold-grad: linear-gradient(135deg,#f7e3a1,#e8b84b 46%,#b8842a);
  --d70: #ff6a2b; --d80: #ff3d8b; --d90: #2bb8c9; --d00: #f5c542;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== FULL-SCREEN GLOW STAGE ===== */
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
  background:
    radial-gradient(60% 45% at 18% -6%, rgba(232,184,75,.10), transparent 62%),
    radial-gradient(55% 50% at 92% 106%, rgba(255,61,139,.06), transparent 60%),
    var(--bg);
}

/* ===== BRAND ===== */
.brand-mark { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-decoration: none; margin-bottom: 2rem; }
.brand-mark .fb {
  font-family: 'Anton', sans-serif; font-size: 2.1rem; letter-spacing: .05em; text-transform: uppercase;
  color: #f5f0e2;
  text-shadow: 0 1px 0 #f5f0e2, 0 2px 0 var(--gold-dp), 0 3px 0 var(--gold-dp), 0 4px 6px rgba(0,0,0,.55), 0 0 14px rgba(232,184,75,.15);
}
.brand-mark .cl {
  font-family: 'Pacifico', cursive; font-size: 2rem; margin-top: -.25rem;
  background: linear-gradient(180deg,#ffffff 0%,#ffd6ea 30%,#ff6fb3 62%,#ff3d8b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,61,139,.5)) drop-shadow(0 2px 2px rgba(0,0,0,.4));
}

@media (max-width: 380px) {
  .brand-mark .fb { font-size: 1.6rem; }
  .brand-mark .cl { font-size: 1.5rem; }
}

.decade-strip { display: flex; gap: .4rem; justify-content: center; margin-bottom: 1.6rem; }
.decade-strip span {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.decade-strip .d70 { background: var(--d70); }
.decade-strip .d80 { background: var(--d80); }
.decade-strip .d90 { background: var(--d90); }
.decade-strip .d00 { background: var(--d00); }

/* ===== AUTH CARD (single template for every login page) ===== */
.auth-box {
  width: min(400px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px var(--line);
  position: relative;
  z-index: 1;
}

.auth-box h1 {
  font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: .01em;
  font-size: 1.5rem; color: #fff; text-align: center; margin-bottom: .35rem;
}
.auth-box .sub { color: var(--muted); font-size: .86rem; text-align: center; line-height: 1.5; margin-bottom: 1.8rem; }

/* ===== FORM — underline fields (no boxes) ===== */
.auth-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #2a2416;
  color: var(--text); padding: .55rem 2px; font-size: 1rem; font-family: inherit;
  transition: border-color .2s;
}
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.field input::placeholder { color: #4a4330; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 34px; }
.pw-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: var(--dim); cursor: pointer; padding: 4px; display: flex; align-items: center; transition: color .2s;
}
.pw-toggle:hover { color: var(--muted); }

/* ===== PRIMARY BUTTON — gold pill, matches landing page CTA ===== */
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  font-family: inherit; cursor: pointer; background: var(--gold-grad); color: #1c1206;
  box-shadow: 0 10px 26px rgba(232,184,75,.28); transition: transform .15s, box-shadow .15s;
  margin-top: 6px; text-decoration: none;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(232,184,75,.36); }
.primary .btn-spinner {
  width: 15px; height: 15px; border: 2px solid rgba(28,18,6,.3); border-top-color: #1c1206;
  border-radius: 50%; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s;
  animation: spin .8s linear infinite;
}
.primary.loading { pointer-events: none; opacity: .85; }
.primary.loading .btn-spinner { opacity: 1; transform: scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }

.secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  font-family: inherit; cursor: pointer; background: transparent; color: var(--muted);
  text-decoration: none; transition: border-color .2s, color .2s; margin-top: 12px;
}
.secondary:hover { border-color: var(--gold); color: var(--text); }

.auth-links { margin-top: 18px; display: flex; justify-content: space-between; font-size: .76rem; }
.auth-links a { color: var(--dim); text-decoration: none; transition: color .2s; }
.auth-links a:hover { color: var(--gold); }

.auth-foot {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2);
  font-size: .7rem; color: var(--dim); display: flex; flex-direction: column; gap: 6px;
  align-items: center; text-align: center;
}
.support-link { color: var(--dim); text-decoration: none; transition: color .2s; }
.support-link:hover { color: var(--gold); }

.notice {
  background: rgba(43,184,201,.1); border: 1px solid rgba(43,184,201,.25); color: #7fd9e3;
  padding: 12px 14px; font-size: .82rem; margin-bottom: 20px; border-radius: 10px;
}
.hidden { display: none !important; }

/* ===== SUCCESS TOAST ===== */
.success-toast {
  position: fixed; top: 28px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--gold-grad); color: #1c1206; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232,184,75,.35); display: flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 700; z-index: 9999; opacity: 0; pointer-events: none;
  transition: all .4s ease;
}
.success-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.success-toast svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .auth-box { padding: 1.8rem 1.4rem; border-radius: 16px; }
  .vinyl { width: 76px; height: 76px; }
}
