/* ===========================================================================
   SV3N.APP – Login / Landing
   =========================================================================== */
:root {
  --bg: #171717;
  --bg-elev: #1f1f1f;
  --border: #2b2b2b;
  --text: #e8eaed;
  --muted: #9aa3af;
  --faint: #6b7280;
  --accent: #02f5a1;
  --accent-soft: rgba(2, 245, 161, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body {
  min-height: 100vh; color: var(--text); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(165deg, #1a1f2b 0%, #12151d 45%, #171717 100%);
}
body::before {
  content: ""; position: fixed; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 22%, rgba(2, 245, 161, .28), transparent 60%),
    radial-gradient(36% 44% at 82% 18%, rgba(88, 101, 242, .26), transparent 60%),
    radial-gradient(40% 50% at 76% 82%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(40% 48% at 24% 84%, rgba(62, 207, 142, .22), transparent 60%);
  animation: loginAurora 34s ease-in-out infinite alternate, loginHue 22s ease-in-out infinite alternate;
}
@keyframes loginAurora {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  100% { transform: translate3d(-3%,2%,0) scale(1.13) rotate(-2deg); }
}
@keyframes loginHue {
  0%   { filter: saturate(125%) hue-rotate(-12deg); }
  100% { filter: saturate(140%) hue-rotate(18deg); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
.container { position: relative; z-index: 1; }
.container { text-align: center; width: 100%; max-width: 440px; }
h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: .12em; }
h1 span { color: var(--accent); }
.subtitle { margin-top: .5rem; font-size: .95rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.card {
  margin-top: 2.4rem; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.login-err {
  display: none; align-items: flex-start; gap: 9px; padding: 12px 14px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(255,93,93,.12); border: 1px solid rgba(255,93,93,.35);
  color: #ff8a8a; font-size: .85rem; line-height: 1.45; text-align: left;
}
.login-err.show { display: flex; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-size: .98rem; font-weight: 600;
  padding: .85rem 1.4rem; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, .03); transition: all .18s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn.discord {
  background: #5865F2; border-color: #5865F2; color: #fff; width: 100%; justify-content: center;
}
.btn.discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

.fineprint { margin-top: 16px; color: var(--faint); font-size: .82rem; }

.login-footer {
  position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); text-align: center; z-index: 2;
  display: flex; gap: 10px; justify-content: center; align-items: center;
  color: var(--faint); font-size: .8rem;
}
.login-footer a { color: var(--faint); text-decoration: none; }
.login-footer a:hover { color: var(--accent); }
