/* sky.css — the moving background of the sign-in page and the chooser ONLY (Gabriel 12-04: "add some animation background to
   login page only"): four slow colour orbs, twelve fireflies for the cat's night forest, a dotted grid. Ported from
   TD-Dashboard/health/server/anna-home-pages.mjs; its timings are tokens here. prefers-reduced-motion stops all of it. */
:root{
  --o1:#3987E5; --o2:#199E70; --o3:#E6336E; --o4:#C98500;
  --fly:#FFD27A; --fly-glow:color-mix(in srgb,#FFD27A 55%,transparent);
  --sh-fly:0 0 10px 3px var(--fly-glow);
  --dur-oa:28s; --dur-ob:34s; --dur-oc:40s; --dur-od:31s;
  --dur-fly-13:13s; --dur-fly-14:14s; --dur-fly-15:15s; --dur-fly-16:16s; --dur-fly-17:17s; --dur-fly-18:18s; --dur-fly-19:19s; --dur-fly-20:20s; --dur-fly-21:21s;
  --ease-io:ease-in-out;
}
:root[data-theme="light"]{
  --o1:#84B9F3; --o2:#5FD3A8; --o3:#F4A37E; --o4:#F2C14E;
  --fly:#E0A000; --fly-glow:color-mix(in srgb,#E0A000 35%,transparent);
}

.sky{ position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.sky .grid{ position:absolute; inset:0; background-image:radial-gradient(color-mix(in srgb,var(--txt) 11%,transparent) 1px,transparent 1.4px); background-size:24px 24px; -webkit-mask-image:radial-gradient(ellipse 75% 65% at 50% 45%,var(--bg) 15%,transparent 75%); mask-image:radial-gradient(ellipse 75% 65% at 50% 45%,var(--bg) 15%,transparent 75%); opacity:.55; }
.orb{ position:absolute; border-radius:50%; filter:blur(60px); opacity:.5; will-change:transform; }
.orb.a{ width:52vmax; height:52vmax; left:-16vmax; top:-18vmax; background:radial-gradient(circle at 35% 35%,var(--o1),transparent 62%); animation:oa var(--dur-oa) var(--ease-io) infinite alternate; }
.orb.b{ width:46vmax; height:46vmax; right:-14vmax; bottom:-18vmax; background:radial-gradient(circle at 60% 60%,var(--o2),transparent 62%); animation:ob var(--dur-ob) var(--ease-io) infinite alternate; }
.orb.c{ width:30vmax; height:30vmax; left:48%; top:52%; background:radial-gradient(circle,var(--o3),transparent 64%); opacity:.3; animation:oc var(--dur-oc) var(--ease-io) infinite alternate; }
.orb.d{ width:24vmax; height:24vmax; left:8%; bottom:4%; background:radial-gradient(circle,var(--o4),transparent 64%); opacity:.24; animation:od var(--dur-od) var(--ease-io) infinite alternate; }
@keyframes oa{ to{ transform:translate(14vmax,10vmax) scale(1.12); } }
@keyframes ob{ to{ transform:translate(-12vmax,-8vmax) scale(1.18); } }
@keyframes oc{ to{ transform:translate(-22vmax,-16vmax) scale(.86); } }
@keyframes od{ to{ transform:translate(16vmax,-12vmax) scale(1.2); } }

.fly{ position:absolute; width:4px; height:4px; border-radius:50%; background:var(--fly); box-shadow:var(--sh-fly); opacity:0; animation:fly var(--dur-fly-15) var(--ease-io) infinite; }
.fly:nth-of-type(1){ left:9%; top:78%; animation-delay:-1s; }
.fly:nth-of-type(2){ left:22%; top:64%; animation-duration:var(--dur-fly-18); animation-delay:-7s; }
.fly:nth-of-type(3){ left:36%; top:86%; animation-duration:var(--dur-fly-13); animation-delay:-4s; }
.fly:nth-of-type(4){ left:57%; top:74%; animation-duration:var(--dur-fly-17); animation-delay:-10s; }
.fly:nth-of-type(5){ left:71%; top:88%; animation-delay:-3s; }
.fly:nth-of-type(6){ left:84%; top:66%; animation-duration:var(--dur-fly-19); animation-delay:-12s; }
.fly:nth-of-type(7){ left:93%; top:82%; animation-duration:var(--dur-fly-14); animation-delay:-6s; }
.fly:nth-of-type(8){ left:15%; top:42%; animation-duration:var(--dur-fly-20); animation-delay:-14s; }
.fly:nth-of-type(9){ left:66%; top:38%; animation-duration:var(--dur-fly-16); animation-delay:-9s; }
.fly:nth-of-type(10){ left:47%; top:58%; animation-duration:var(--dur-fly-21); animation-delay:-2s; }
.fly:nth-of-type(11){ left:28%; top:22%; animation-duration:var(--dur-fly-18); animation-delay:-11s; }
.fly:nth-of-type(12){ left:80%; top:24%; animation-delay:-5s; }
@keyframes fly{
  0%{ opacity:0; transform:translate(0,0); }
  15%{ opacity:.9; }
  45%{ opacity:.3; transform:translate(3vw,-8vh); }
  70%{ opacity:.85; transform:translate(-1vw,-13vh); }
  100%{ opacity:0; transform:translate(-3vw,-19vh); }
}

@media (prefers-reduced-motion:reduce){
  .sky .orb{ animation:none; }
  .sky .fly{ animation:none; opacity:.45; }
}
