/* Welcome and login on the approved b² mark (17 Nov 2026). Same Nebula world: deep navy, teal to lilac, glass, stars.
   Motion: one focus at a time. Welcome: b draws → 2 draws beside it → 2 steps up → tagline → copy → button.
   Login: mark glides into the corner → ring searches while connecting → ring closes and a tick appears when verified. */

:root{--e-ease:cubic-bezier(.16,1,.3,1)}

/* ---------- shared ---------- */
.e-sky{position:absolute;inset:0;pointer-events:none}
.e-in{animation:e-rise 700ms var(--e-ease) backwards;animation-delay:calc(var(--e-start,1.9s) + var(--k,0)*120ms)}
@keyframes e-rise{from{opacity:0;transform:translateY(14px)}}

/* ---------- welcome ---------- */
.e-welcome .e-hero{position:relative;flex:1 0 250px;min-height:250px;max-height:340px;margin:calc(4px + var(--safe-t)) -26px 4px;display:grid;place-items:center}
.e-welcome .e-sky{inset:-40px -26px auto;height:460px}
.e-welcome .n-auth-aura{width:80%;left:10%;top:6%}

/* orbits fade in first, then turn very slowly; a light travels on the outer one */
.e-orbits{position:absolute;width:268px;height:268px;left:50%;top:46%;translate:-50% -50%;animation:e-fade 1.2s ease-out .1s backwards}
.e-orbits>i{position:absolute;inset:0;border:1px solid #87d5e64a;border-radius:50%;transform:rotate(-28deg) scaleY(.62);animation:auth-orbit-one 14s ease-in-out infinite}
.e-orbits>i+i{inset:26px;border-color:#b6a2df52;transform:rotate(32deg) scaleY(.68);animation:auth-orbit-two 18s ease-in-out infinite}
.e-orbits>b{position:absolute;inset:0;animation:auth-spin 16s linear infinite}
.e-orbits>b:before{content:'';position:absolute;top:24px;left:44px;width:7px;height:7px;border-radius:50%;background:#a0fff1;box-shadow:0 0 8px #affff3,0 0 22px #73e5e0}
@keyframes e-fade{from{opacity:0}}

/* the mark: large, floating gently once it has formed */
.e-float{position:relative;top:-14px;animation:e-float 6s ease-in-out 2.6s infinite}
@keyframes e-float{50%{transform:translateY(-6px)}}
.e-mark{display:block;width:156px;height:144px;overflow:visible;filter:drop-shadow(0 10px 26px #4fc7d433)}
.e-mark .e-b{stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0;animation:e-draw 900ms cubic-bezier(.65,0,.35,1) .25s forwards,e-show 1ms linear .25s forwards}
.e-mark .e-2{stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0;animation:e-draw 650ms cubic-bezier(.65,0,.35,1) .95s forwards,e-show 1ms linear .95s forwards}
/* the 2 is drawn down on the line next to the b, then takes its step up */
.e-mark .e-two{transform-box:fill-box;transform-origin:0 100%;transform:translate(-3px,15px) scale(.92);animation:e-step 760ms var(--e-ease) 1.55s forwards}
@keyframes e-draw{to{stroke-dashoffset:0}}
@keyframes e-show{to{opacity:1}}
@keyframes e-step{to{transform:none}}
/* one soft pulse of light where the 2 lands */
.e-glow{position:absolute;right:4px;top:-8px;width:64px;height:64px;border-radius:50%;opacity:0;pointer-events:none;
  background:radial-gradient(closest-side,#c4bbf766,#95c9f722 55%,transparent);animation:e-pulse 1.1s ease-out 2.05s forwards}
@keyframes e-pulse{0%{opacity:0;transform:scale(.4)}35%{opacity:1}100%{opacity:0;transform:scale(1.6)}}

.e-tag{position:absolute;left:0;right:0;bottom:22px;margin:0;text-align:center;font-size:13px;letter-spacing:.3px;color:#a5bbce;animation:e-rise 700ms var(--e-ease) 1.95s backwards}
.e-welcome .n-orbit-tag{animation:e-tag-in 700ms var(--e-ease) backwards,auth-tag 6s ease-in-out infinite;z-index:1}
.e-welcome .n-orbit-tag-one{left:22px;top:14%;animation-delay:2.25s,2.95s}
.e-welcome .n-orbit-tag-two{right:20px;bottom:25%;animation-delay:2.4s,4s}
@keyframes e-tag-in{from{opacity:0;transform:translateY(10px) scale(.96)}}
.e-welcome{--e-start:2.2s}
.e-welcome .n-auth-intro h1{margin-top:10px}

/* ---------- login ---------- */
.e-login{--e-start:.35s}
.e-login .n-auth-brand{position:relative;z-index:3}
.e-login .n-auth-brand .n-brand-symbol{will-change:transform}
/* the tagline waits until the mark has landed beside it */
.e-arrived .n-auth-brand small{animation:e-rise 500ms var(--e-ease) .7s backwards}
.e-visual{position:relative;height:190px;min-height:160px;margin:10px -26px 6px;overflow:visible}
.e-visual .e-sky{inset:-60px 0 -20px}
.e-portal{position:absolute;left:50%;top:50%;width:160px;height:160px;translate:-50% -50%;animation:e-fade .8s ease-out .2s backwards}
.e-portal .n-auth-aura{width:230px;left:-35px;top:-35px}
.e-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}
.e-ring circle{fill:none;stroke-width:3;stroke-linecap:round}
.e-ring-track{stroke:#8bc7e322}
.e-ring-arc{stroke:url(#e-ring-g);stroke-dasharray:.22 .78;filter:drop-shadow(0 0 6px #8ee9e366)}
/* connecting: a short arc sweeps round, like searching */
.e-login[data-state=busy] .e-ring{animation:auth-spin 1.6s linear infinite}
/* verified: the arc grows to a full circle, then a tick appears on the seat */
.e-login[data-state=verified] .e-ring-arc{animation:e-close 900ms var(--e-ease) forwards}
@keyframes e-close{from{stroke-dasharray:.22 .78}to{stroke-dasharray:1 0}}
/* waiting for a choice: a faint arc drifts slowly round */
.e-login[data-state=idle] .e-ring{animation:auth-spin 14s linear infinite}
.e-login[data-state=idle] .e-ring-arc{opacity:.55}

/* Continue with Apple / Google: equal size and weight, each in its own brand's light style */
.e-social{display:grid;gap:11px}
.e-sso[hidden]{display:none}
.e-sso{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;padding:0 18px;border-radius:16px;
  font:600 15px/1.2 var(--font-body);letter-spacing:.1px;cursor:pointer;transition:transform 120ms,opacity .3s;box-shadow:0 8px 22px #01081b40}
.e-sso:active{transform:scale(.98)}
.e-apple{background:#fff;color:#000;border:1px solid #fff}
.e-google{background:#fff;color:#1f1f1f;border:1px solid #747775}
.e-sso-logo{width:19px;height:19px;flex:none}
.e-apple .e-sso-logo{width:16px;height:19px;margin-top:-2px}
.e-sso:disabled{cursor:default;opacity:.45}
.e-sso.is-busy{opacity:1}
.e-sso.is-busy .e-sso-logo{animation:e-breathe 1s ease-in-out infinite}
@keyframes e-breathe{50%{opacity:.35}}
.e-local{display:block;min-height:44px;margin:12px auto 0;padding:8px 14px;background:none;border:0;color:#b7e5e7;font-size:13px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.e-login .n-auth-storage{margin-top:4px!important}
.e-card{animation:auth-verified .65s var(--e-ease)}
#account-action>.btn{margin-top:14px}

.e-seat{position:absolute;inset:30px;display:grid;place-items:center;border-radius:50%;
  background:radial-gradient(circle at 35% 28%,#e9fbff2a,transparent 46%),linear-gradient(140deg,#2f61794d,#33304ba8);
  border:1px solid #96cde057;box-shadow:inset 0 1px 1px #e3fdff26,0 16px 34px #01081b55;animation:auth-core 6s ease-in-out infinite}
.e-person{width:54px;height:54px;stroke:#b8e8f0;stroke-width:2.2;stroke-linecap:round}
.e-person .e-head,.e-person .e-body{stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0;animation:e-draw 700ms cubic-bezier(.65,0,.35,1) forwards,e-show 1ms linear forwards}
.e-person .e-head{animation-delay:.45s,.45s}.e-person .e-body{animation-delay:.75s,.75s}
.e-tick{position:absolute;right:2px;bottom:4px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:linear-gradient(140deg,#7fe8d8,#95c9f7);color:#0d2438;box-shadow:0 0 0 4px #13213a,0 6px 16px #4fd1c444;opacity:0;transform:scale(.4)}
.e-login[data-state=verified] .e-tick{animation:e-pop 520ms var(--e-ease) .75s forwards}
@keyframes e-pop{to{opacity:1;transform:none}}

/* the card follows the ring's state, so the eye goes ring → card → button */
.e-login .n-login-card{margin-top:22px}

/* ---------- small and short screens ---------- */
@media(max-width:360px){.e-mark{width:132px;height:122px}.e-orbits{width:232px;height:232px}.e-welcome .n-orbit-tag-one{left:12px}.e-welcome .n-orbit-tag-two{right:10px}}
@media(max-height:720px){.e-welcome .e-hero{flex-basis:210px;min-height:210px}.e-mark{width:128px;height:118px}.e-orbits{width:220px;height:220px}.e-visual{height:150px}.e-portal{width:132px;height:132px}.e-seat{inset:24px}}

/* ---------- reduced motion and still captures: everything in its final place ---------- */
html.calm .e-welcome *,html.calm .e-login *,html.static .e-welcome *,html.static .e-login *{animation:none!important}
html.calm .e-mark .e-b,html.calm .e-mark .e-2,html.static .e-mark .e-b,html.static .e-mark .e-2,
html.calm .e-person *,html.static .e-person *{stroke-dashoffset:0;opacity:1}
html.calm .e-mark .e-two,html.static .e-mark .e-two{transform:none}
html.calm .e-login[data-state=verified] .e-ring-arc,html.static .e-login[data-state=verified] .e-ring-arc{stroke-dasharray:1 0}
html.calm .e-login[data-state=verified] .e-tick,html.static .e-login[data-state=verified] .e-tick{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.e-welcome *,.e-login *{animation:none!important}.e-mark .e-b,.e-mark .e-2,.e-person *{stroke-dashoffset:0;opacity:1}.e-mark .e-two{transform:none}.e-login[data-state=verified] .e-tick{opacity:1;transform:none}.e-login[data-state=verified] .e-ring-arc{stroke-dasharray:1 0}}
