/* dashboard/static/login/loader.css
   The sign-in load screen: in the markup from the first frame, on top of everything,
   hidden by html.loader-done with a short fade once the 3D scene is live. A CSS
   keyframe hides it at 20 s (the script's own ceiling) so a page whose script never
   runs cannot sit behind it; the script cancels that keyframe with html.loader-live
   and applies its own stall and ceiling rules. Tokens: --muted, --link, and the ground:
   the light theme uses the dashboard's cream (#f4eee1, --ui-bg in styles.css; Ben,
   2026-09-17), the dark theme the page's --paper. */
.loader{--loader-ground:#f4eee1}
:root[data-theme=dark] .loader{--loader-ground:var(--paper)}
.loader{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:var(--loader-ground);
  opacity:1;visibility:visible;transition:opacity .5s ease,visibility 0s linear .5s;
  animation:loader-timeout 0s linear 20s forwards}
.loader-inner{display:grid;justify-items:center;gap:28px;width:240px}
.loader-inner img{display:block;width:200px;height:auto}
.loader-bar{width:240px;height:2px;border-radius:1px;overflow:hidden;background:var(--sso-rule)}
.loader-bar i{display:block;height:100%;width:0;border-radius:1px;background:var(--link);transition:width .25s ease-out}
.loader-label{margin-top:-8px;font:600 11px/1 var(--font);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
/* Once the fade starts the page underneath is live, so pointer events go straight to it. */
html.loader-live .loader{animation:none}
html.loader-done .loader{opacity:0;visibility:hidden;animation:none;pointer-events:none}
@keyframes loader-timeout{to{opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){.loader{transition:none}}
