/* Sign-in water (Ted, 2026-11-01): the light answers the tap, ripples while the ledger loads under the white
   page, then one wave washes the white page off the loaded table. */
.sign-in-button.login-reveal-pending:disabled{opacity:1}
.sign-in-button.login-reveal-pending>span{animation-play-state:running}
.sign-in-button.login-reveal-pending .mist-core{box-shadow:0 0 9px 3px rgba(255,250,224,.88),0 0 25px 10px rgba(217,204,173,.3)}
.sign-in-button.login-reveal-pending .mist-cloud{animation:login-tap-mist .72s ease-out,auth-mist-breathe 3.8s ease-in-out .72s infinite}
.sign-in-button.login-reveal-pending .mist-line{animation:login-tap-line .72s ease-out,auth-mist-light 3.8s ease-in-out .72s infinite}
.sign-in-button.login-reveal-pending .mist-core{animation:login-tap-light .45s ease-out,auth-mist-light 3.8s ease-in-out .45s infinite}
@keyframes login-tap-mist{0%{transform:scaleX(.74) scaleY(.74);opacity:.8}35%{transform:scaleX(1.3) scaleY(.6);opacity:.48}75%{transform:scaleX(1.6) scaleY(.95);opacity:.15}100%{transform:scaleX(.94) scaleY(.88);opacity:.5}}
@keyframes login-tap-line{0%{transform:scaleX(.12);opacity:1}70%{transform:scaleX(1.28);opacity:.3}100%{transform:scaleX(1);opacity:.65}}
@keyframes login-tap-light{0%{scale:.8;opacity:1}30%{scale:2.6;opacity:1}100%{scale:1;opacity:.65}}
/* While the ledger loads: the white page covers everything and only the light pulses. */
#auth-screen.login-wave-cover{position:fixed;inset:0;z-index:1101;pointer-events:none;background:#fff}
.sign-in-button.login-wave-waiting .mist-core{animation:login-wave-pulse .95s ease-in-out infinite}
.sign-in-button.login-wave-waiting .mist-cloud{animation:login-wave-cloud .95s ease-in-out infinite}
@keyframes login-wave-pulse{0%,100%{scale:1;opacity:.8}18%{scale:2.2;opacity:1}}
@keyframes login-wave-cloud{0%,100%{transform:scale(1);opacity:.55}22%{transform:scaleX(1.5) scaleY(1.1);opacity:.9}}
/* The clear ripple: the page turns transparent, the light presses down once and its mist spreads as the water releases. */
#auth-screen.login-wave-washing .sign-in-button>span{animation:none}
#auth-screen.login-wave-washing .sign-in-button .mist-core{transform:rotate(45deg) scale(var(--water-pressure,1))}
#auth-screen.login-wave-washing .sign-in-button .mist-cloud{transform:scaleX(calc(1 + var(--water-release,0)*1.8)) scaleY(calc(1 + var(--water-release,0)*.4));scale:1;opacity:calc(1 - var(--water-release,0))}
#auth-screen.login-wave-washing .sign-in-button .mist-line{transform:scaleX(calc(1 + var(--water-release,0)*1.3));opacity:calc(1 - var(--water-release,0))}
@media(prefers-reduced-motion:reduce){.sign-in-button.login-reveal-pending :is(.mist-cloud,.mist-line,.mist-core),.sign-in-button.login-wave-waiting :is(.mist-cloud,.mist-core){animation:none}}
