/* A luminous particle bloom opens the stage into the login interface. */
.login-signal-stage {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  place-items: center;
  background: #020916;
  color: #edf5fc;
  pointer-events: none;
  opacity: 1;
  overflow: hidden;
}
.login-intro-active .login-signal-stage,
.login-screensaver-active .login-signal-stage,
.login-exiting .login-signal-stage { display: grid; }
.login-signal-content { position: relative; z-index: 1; display: grid; place-items: center; width: min(520px, 100vw); height: min(580px, 84svh); }
.login-signal-logo { position: relative; grid-area: 1 / 1; z-index: 1; width: clamp(150px, 24vw, 240px); height: auto; filter: drop-shadow(0 4px 16px #020916); }
.login-signal-title { position: absolute; bottom: 6px; font: 600 14px/1.4 Outfit, sans-serif; letter-spacing: .12em; }
.login-particle-orb { display: block; grid-area: 1 / 1; z-index: 0; width: min(440px, 92vw, 62svh); height: auto; aspect-ratio: 1; }
.login-particle-orb.orb-unavailable { border-radius: 50%; background: radial-gradient(ellipse at 30% 30%, rgba(35,174,220,.2), transparent 60%), radial-gradient(ellipse at 70% 30%, rgba(255,240,37,.14), transparent 60%), radial-gradient(ellipse at 70% 70%, rgba(222,23,27,.16), transparent 60%), radial-gradient(ellipse at 30% 70%, rgba(50,180,68,.16), transparent 60%); }
.login-signal-foot { position: absolute; z-index: 1; bottom: max(26px, env(safe-area-inset-bottom)); font: 500 11px/1.5 Outfit, sans-serif; letter-spacing: .08em; color: #9fb5c9; }
.login-signal-foot img { display: block; height: 22px; width: auto; }
.login-intro-active .login-signal-stage { background: transparent; }
.login-intro-active .login-signal-stage::before,
.login-intro-active .login-signal-stage::after { content: ''; position: absolute; top: 0; bottom: 0; width: calc(50% + 1px); background: #020916; }
.login-intro-active .login-signal-stage::before { left: 0; border-right: 1px solid transparent; animation: loginCurtainLeft 1600ms 2400ms cubic-bezier(.65,0,.35,1) both; }
.login-intro-active .login-signal-stage::after { right: 0; border-left: 1px solid transparent; animation: loginCurtainRight 1600ms 2400ms cubic-bezier(.65,0,.35,1) both; }
.login-intro-active .login-signal-content { animation: loginSignalRelease 1600ms 2400ms cubic-bezier(.22,1,.36,1) both; }
.login-intro-active .login-signal-foot { animation: loginFootRelease 1600ms 2400ms linear both; }
.login-intro-active .login-signal-logo { animation: loginBrandIn 600ms 300ms ease-out both; }
.login-intro-active .login-signal-title { animation: loginBrandIn 600ms 600ms ease-out both; }
html.login-motion-ready:not(.login-intro-active):not(.login-screensaver-active) body.login-mounted #login-card:not(.login-success):not(.login-shake) {
  opacity: 1; transform: none; animation: none;
}
html.login-intro-active body.login-mounted #login-card {
  animation: loginFormReveal 1600ms 2400ms cubic-bezier(.22, 1, .36, 1) both;
}
html.login-exiting body.login-mounted #login-card { animation: loginFormExit 400ms ease-in both; }
.login-exiting .login-signal-stage { animation: loginBridgeIn 400ms ease-out both; }
.login-screensaver-active .login-signal-stage { background: rgba(2, 9, 22, .45); animation: loginBridgeIn 300ms ease-out both; }
.login-screensaver-active .login-signal-content { height: min(520px, calc(100svh - 180px)); }
html.login-screensaver-active body.login-mounted #login-card { visibility: hidden; opacity: 0; pointer-events: none; }
.login-screensaver-active .login-signal-content::after { content: 'Move, tap or press any key to sign in'; position: absolute; bottom: -24px; color: #edf5fc; font: 400 12px/1.5 Outfit, sans-serif; text-align: center; text-shadow: 0 2px 6px #020916; }
.login-idle-announcement { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sc-dashboard-arriving .app-topbar,
.sc-dashboard-arriving .category-section { animation: loginDashboardIn 400ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes loginBrandIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loginCurtainLeft { 0% { transform: translateX(0); border-color: transparent; box-shadow: none; } 20%, 80% { border-color: rgba(35,174,220,.45); box-shadow: 8px 0 32px rgba(35,174,220,.12); } 100% { transform: translateX(-100%); border-color: transparent; box-shadow: none; } }
@keyframes loginCurtainRight { 0% { transform: translateX(0); border-color: transparent; box-shadow: none; } 20%, 80% { border-color: rgba(50,180,68,.45); box-shadow: -8px 0 32px rgba(50,180,68,.12); } 100% { transform: translateX(100%); border-color: transparent; box-shadow: none; } }
@keyframes loginSignalRelease { 0% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45) translateY(-16px); } }
@keyframes loginFootRelease { 0% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes loginFormReveal { from { opacity: 0; transform: translateY(36px) scale(.94); clip-path: inset(0 42% 0 42% round 24px); } 45% { opacity: 1; } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 24px); } }
@keyframes loginFormExit { to { opacity: 0; transform: translateY(-8px); } }
@keyframes loginBridgeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loginDashboardIn { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .login-signal-stage { display: none !important; }
  .sc-dashboard-arriving .app-topbar, .sc-dashboard-arriving .category-section,
  html.login-motion-ready body.login-mounted #login-card { animation: none !important; opacity: 1; transform: none; }
}
