/* Login / register / admin-login background: the HUD image (slightly blurred + dimmed) with an
   animated glitch overlay on top, plus a glassy neon restyle for the auth card. Drop
   <div class="glx">…</div> right after <body>; keep the card at position:relative;z-index:2+.
   No mix-blend-mode (renders everywhere). Respects reduced-motion. */
.glx{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#04060b}
.glx *{position:absolute}
/* blurred + dimmed background image */
.glx::before{content:"";position:absolute;inset:-24px;
  background:url('/assets/login-bg.png') center center / cover no-repeat;
  filter:blur(2px) brightness(.72) saturate(1.18)}
/* subtle drifting neon wash — continuous, smooth (ease-in-out, always moving) */
.glx i{inset:-12%}
.glx i:nth-child(1){background:radial-gradient(circle at 16% 24%, rgba(255,0,120,.11), transparent 46%);animation:glx-drift 9s ease-in-out infinite alternate}
.glx i:nth-child(2){background:radial-gradient(circle at 84% 76%, rgba(0,200,255,.11), transparent 46%);animation:glx-drift 11s ease-in-out infinite alternate-reverse}
.glx i:nth-child(3){background:radial-gradient(circle at 55% 50%, rgba(140,0,255,.07), transparent 55%);animation:glx-drift 13s ease-in-out infinite alternate}
/* pixel "data" texture — scrolls continuously (linear, smooth loop) */
.glx u{inset:0;opacity:.26;
  background:
    repeating-linear-gradient(90deg, rgba(255,0,68,.10) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(0deg,  rgba(0,220,255,.08) 0 2px, transparent 2px 7px);
  animation:glx-scroll 7s linear infinite}
/* bright scan bar sweeping top→bottom, forever (the "continuous" hero) */
.glx u::before{content:"";position:absolute;left:0;right:0;top:0;height:16%;
  background:linear-gradient(180deg, transparent, rgba(0,229,255,.16) 45%, rgba(255,255,255,.28) 50%, rgba(255,0,120,.16) 55%, transparent);
  filter:blur(1px);animation:glx-sweep 4.5s linear infinite}
/* a second, slower counter-sweep so a bar is almost always in view */
.glx u::after{content:"";position:absolute;left:0;right:0;top:0;height:9%;
  background:linear-gradient(180deg, transparent, rgba(255,0,120,.14) 50%, transparent);
  animation:glx-sweep 7.5s linear infinite 2s}
/* RGB-split slices — always faintly on, drifting smoothly (never fully still) */
.glx b{left:-6%;right:-6%;
  background:linear-gradient(90deg, transparent, rgba(255,0,72,.30) 20%, rgba(255,255,255,.22) 50%, rgba(0,229,255,.30) 80%, transparent)}
.glx b:nth-child(4){top:18%;height:8px; animation:glx-jit 5s ease-in-out infinite, glx-pulse 3.1s ease-in-out infinite}
.glx b:nth-child(5){top:44%;height:5px; animation:glx-jit 6.4s ease-in-out infinite .5s, glx-pulse 2.4s ease-in-out infinite .3s}
.glx b:nth-child(6){top:63%;height:12px;animation:glx-jit 4.3s ease-in-out infinite 1s, glx-pulse 3.7s ease-in-out infinite .8s}
.glx b:nth-child(7){top:80%;height:4px; animation:glx-jit 5.7s ease-in-out infinite 1.4s, glx-pulse 2.1s ease-in-out infinite 1.1s}
.glx b:nth-child(8){top:92%;height:7px; animation:glx-jit 6.9s ease-in-out infinite .7s, glx-pulse 3.3s ease-in-out infinite .5s}
/* scanlines — scroll continuously + gentle smooth flicker */
.glx::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.20) 2px 3px);opacity:.42;animation:glx-scan 8s linear infinite, glx-flick 3.5s ease-in-out infinite}
@keyframes glx-drift{to{transform:translate3d(6%,-5%,0) scale(1.15)}}
@keyframes glx-scroll{to{background-position:6px -7px, -5px 7px}}
@keyframes glx-sweep{0%{transform:translateY(-20vh)}100%{transform:translateY(120vh)}}
@keyframes glx-jit{
  0%{transform:translateX(-2.5%)}   18%{transform:translateX(2.5%)}
  36%{transform:translateX(-3.5%)}  54%{transform:translateX(1.8%)}
  72%{transform:translateX(-2.2%)}  86%{transform:translateX(3%)}
  100%{transform:translateX(-2.5%)}}
@keyframes glx-pulse{0%,100%{opacity:.22}50%{opacity:.55}}
@keyframes glx-scan{to{background-position:0 12px}}
@keyframes glx-flick{0%,100%{opacity:.42}50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.glx *,.glx::before,.glx::after,.glx u::before,.glx u::after{animation:none!important}}

/* ── glassy neon restyle for the auth card (over the glitch image) ── */
.auth-card, .sa-login{
  background:linear-gradient(180deg, rgba(9,13,20,.78), rgba(6,9,15,.86)) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.15); backdrop-filter:blur(14px) saturate(1.15);
  border:1px solid rgba(0,229,255,.28) !important;
  box-shadow:0 0 0 1px rgba(255,0,120,.10), 0 0 42px rgba(0,229,255,.14), 0 24px 70px rgba(0,0,0,.62) !important;
}
/* inputs a touch more translucent so the neon frame reads as one piece */
.auth-card input:not([type=checkbox]):not([type=radio]), .sa-login .sa-input{
  background:rgba(3,7,12,.72) !important; border-color:rgba(0,229,255,.22) !important;
}
.auth-card input:focus, .sa-login .sa-input:focus{
  border-color:rgba(0,229,255,.7) !important; box-shadow:0 0 0 2px rgba(0,229,255,.18) !important;
}
