/* UNIFACC Branding 0.1.4 R3 - anonymous GLPI 11 login only. */
/* This head stylesheet blocks the native card before the browser's first paint.
   Restrict to an actual GLPI login form. The synchronous prepaint.js head
   script sets the loading flag before the browser can parse the body. If JS
   is blocked altogether, no flag is set and native login stays accessible. */
@supports selector(.page-anonymous:has(#login_name)) {
  html[data-ub-prepaint="loading"] .page-anonymous:has(#login_name) {
    visibility: hidden;
    /* Self-contained fail-open fallback when the customizer stalls/crashes.
       No-JS visitors are never hidden, as no loading flag is created. */
    animation: ub-prepaint-native-fallback 4.5s steps(1, end) 1 forwards;
  }
}

@keyframes ub-prepaint-native-fallback {
  0%, 99.9% { visibility: hidden; }
  100%      { visibility: visible; }
}
