/* Isolated sign-in component. No legacy .login or navigation-aside styles. */
body:has(.auth-shell){display:flow-root;min-height:100dvh;background:radial-gradient(ellipse at 15% 20%,#8b245313,transparent 55%),radial-gradient(ellipse at 90% 85%,#647c9712,transparent 55%),var(--ui-bg)}
#app:has(>.auth-shell){display:grid;align-content:center;min-height:100dvh;padding:12px 0}
#app>.auth-shell{width:calc(100% - 48px);max-width:1020px;margin:0 auto;padding:0;border:1px solid var(--ui-line);border-radius:24px;background:var(--ui-panel);box-shadow:0 24px 80px #27172c12;overflow:hidden;font-size:15px;line-height:1.6;animation:none;transform:none}
.auth-shell .auth-topline{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--ui-line);gap:12px}
.auth-shell .auth-topline>span{font-size:10px;font-weight:650;letter-spacing:.16em;color:var(--ui-muted)}
.auth-shell .theme-toggle{float:none;display:block;margin:0;min-height:36px;font-size:12px;padding:8px 14px;background:transparent;border-color:var(--ui-line)}
.auth-shell .auth-stage{position:relative;min-height:414px;display:grid;grid-template-columns:1fr 1fr;isolation:isolate}
.auth-shell .auth-form{grid-row:1;min-width:0;padding:24px 42px 20px;position:relative;z-index:1;opacity:1;transform:translate3d(0,0,0);transition:opacity .3s ease,transform .45s cubic-bezier(.22,.7,.2,1);will-change:opacity,transform}
.auth-shell .auth-staff{grid-column:2}.auth-shell .auth-teachers{grid-column:1}
.auth-shell .auth-form[inert]{opacity:0;pointer-events:none;transform:translate3d(16px,0,0)}.auth-shell .auth-teachers[inert]{transform:translate3d(-16px,0,0)}
.auth-shell .auth-kicker{font-size:10px;font-weight:650;letter-spacing:.16em;color:var(--ui-accent);margin:0 0 12px}
.auth-shell .auth-form h1{font-size:28px;font-weight:700;line-height:1.25;letter-spacing:-.035em;margin:0 0 8px;color:var(--ui-ink)}.auth-shell .auth-form h1:focus{outline:none}
.auth-shell .auth-description{font-size:14px;color:var(--ui-muted);line-height:1.75;margin:0 0 16px;max-width:none}
.auth-shell .auth-form form{display:block;margin:0;padding:0}
.auth-shell .auth-form label{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;font-size:13px;font-weight:550;line-height:1.5;color:var(--ui-muted)}
.auth-shell .auth-form input{display:block;min-height:48px;height:48px;margin:0;width:100%;padding:11px 13px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised);color:var(--ui-ink);font-size:16px;line-height:1.5}
.auth-shell input:-webkit-autofill{-webkit-text-fill-color:var(--ui-ink);box-shadow:0 0 0 1000px var(--ui-raised) inset;caret-color:var(--ui-ink)}
.auth-shell .auth-form form button[type=submit]{display:flex;justify-content:center;align-items:center;gap:22px;width:100%;min-height:48px;height:auto;margin:14px 0 2px;padding:12px 16px;border-radius:10px;font-size:14px;background:#8b2453;border-color:#8b2453;color:#fff}
.auth-shell .auth-form form button[type=submit]:hover:not(:disabled){background:#a33265;border-color:#a33265}
.auth-shell .auth-text-button{background:transparent;border:0;padding:5px 0;font-size:12px;color:var(--ui-accent);min-height:32px}
.auth-shell .auth-hint{font-size:12px;line-height:1.75;color:var(--ui-muted);margin:8px 0 0;max-width:38ch}
.auth-shell .auth-mobile-switch{display:none}
.auth-shell .auth-welcome{position:absolute;inset:0 auto 0 0;width:50%;height:100%;z-index:2;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:24px 34px 18px;color:#fff;background:radial-gradient(ellipse at 0 0,#cc93b257,transparent 65%),linear-gradient(145deg,#752346,#401d35 75%);border-radius:0 22px 22px 0;transform:translate3d(0,0,0);will-change:transform;transition:transform .56s cubic-bezier(.22,.8,.25,1),border-radius .42s ease;border:0}
.auth-shell.teachers-active .auth-welcome{transform:translate3d(100%,0,0);border-radius:22px 0 0 22px}
.auth-shell .auth-logo{width:240px;max-width:85%;height:auto;position:relative;filter:brightness(0) invert(1);align-self:flex-start}
.auth-shell .auth-welcome-copy{position:relative;margin:12px 0}.auth-shell .auth-welcome .auth-kicker{color:#edc4d7;font-size:10px}
.auth-shell .auth-welcome h2{font-size:32px;font-weight:600;line-height:1.2;letter-spacing:-.04em;margin:8px 0 10px;color:#fff}
.auth-shell .auth-welcome-copy>p:last-child{font-size:14px;line-height:1.8;color:#f0dfe8;margin:0}
.auth-shell .auth-switch-copy{position:relative}.auth-shell .auth-switch-copy>span{display:block;font-size:12px;color:#ead3df;line-height:1.6;margin-bottom:12px}
.auth-shell .auth-switch-copy button{display:flex;justify-content:space-between;align-items:center;gap:32px;min-height:46px;min-width:200px;padding:11px 17px;border:1px solid #ffffff70;border-radius:10px;background:#ffffff0b;color:#fff;font-size:13px}
.auth-shell .auth-switch-copy button:hover{background:#ffffff1a;border-color:#fff}
.auth-shell .auth-welcome-foot{font-size:9px;letter-spacing:.18em;color:#e4c9d6;margin-top:14px;position:relative}
.auth-shell .auth-orbit{position:absolute;width:440px;height:440px;left:-200px;bottom:-220px;border:1px solid #ffffff14;border-radius:50%;pointer-events:none}.auth-shell .auth-orbit:before,.auth-shell .auth-orbit:after{content:'';position:absolute;inset:35px;border:1px solid #ffffff10;border-radius:50%}.auth-shell .auth-orbit:after{inset:70px}
.auth-shell .auth-footer{padding:10px 20px;text-align:center;border-top:1px solid var(--ui-line);color:var(--ui-muted)}.auth-shell .auth-footer small{font-size:12px;line-height:1.7;margin:0;color:var(--ui-muted)}.auth-shell .auth-footer small span:before{content:' · '}
.auth-shell .auth-message{margin:0 0 10px;font-size:13px;color:var(--ui-accent)}.auth-shell .auth-message:empty{display:none}
/* Sign-in fits a short viewport without forcing the form into a fixed height. */
.auth-shell .auth-staff .auth-hint{display:none}
@media(max-width:900px){.auth-shell .auth-form{padding-inline:28px}.auth-shell .auth-welcome{padding-inline:26px}}
@media(max-width:720px){
 #app:has(>.auth-shell){padding:8px 0}
 #app>.auth-shell{max-width:460px;width:calc(100% - 24px);border-radius:18px}
 .auth-shell .auth-topline{height:48px;padding:0 16px}
 .auth-shell .auth-topline>span{font-size:9px}
 .auth-shell .auth-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:64px auto;min-height:0}
 .auth-shell .auth-welcome,.auth-shell.teachers-active .auth-welcome{inset:0 0 auto;width:100%;height:64px;border-radius:0;transform:none;padding:0 18px;display:flex;align-items:flex-start;justify-content:center;transition:none}
 .auth-shell .auth-logo{width:152px;max-width:75%}
 .auth-shell .auth-welcome-copy,.auth-shell .auth-switch-copy,.auth-shell .auth-welcome-foot{display:none}
 .auth-shell .auth-form{grid-column:1;grid-row:2;padding:16px 18px;transition:opacity .28s ease,transform .36s cubic-bezier(.22,.7,.2,1)}
 .auth-shell .auth-form[inert],.auth-shell .auth-teachers[inert]{opacity:0;transform:translate3d(0,12px,0)}
 .auth-shell .auth-form h1{font-size:24px;margin-bottom:14px}
 .auth-shell .auth-form .auth-kicker,.auth-shell .auth-description{display:none}
 .auth-shell .auth-mobile-switch{display:block;width:100%;margin:8px 0 0;background:transparent;border-color:var(--ui-line);color:var(--ui-accent);min-height:44px;font-size:13px}
 .auth-shell .auth-footer{padding:8px 14px}.auth-shell .auth-footer small{font-size:11px;line-height:1.45}.auth-shell .auth-footer small span{display:block}.auth-shell .auth-footer small span:before{content:none}
}
@media(prefers-reduced-motion:reduce){.auth-shell .auth-welcome,.auth-shell .auth-form{transition:none!important;animation:none!important}}

.auth-shell .auth-form .auth-password-field{margin:0 0 12px}.auth-shell .auth-form .auth-password-field>label{margin:0 0 6px}.auth-shell .auth-password-control{position:relative}.auth-shell .auth-password-control input{padding-right:76px}.auth-shell .auth-form .auth-password-control>button{position:absolute;right:3px;top:2px;display:block;width:auto;min-width:62px;height:44px;min-height:44px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--ui-accent);font-size:12px;font-weight:650}.auth-shell .auth-form .auth-password-control>button:hover{background:var(--ui-accent-soft)}

/* The signed-in workspace opens from the settled wordmark. */
/* Sign-in and reload share the same neutral stage and independently fading glow. */
.portal-loader.login-opening{background:#141722;display:block;min-height:0;isolation:isolate}
.login-opening .loader-hue{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 46%,#54243e 0%,#251927 33%,transparent 72%)}
.login-opening .portal-glass{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(108px,33vw);background:none;border:0;border-radius:0;padding:0;box-shadow:none;animation:none}
.login-opening .portal-glass::after{display:none}
.login-opening .portal-glass img{filter:brightness(0) invert(1)}
.login-opening p,.login-opening .loader-credit{position:absolute;left:0;width:100%;margin:0;color:#e8d8e2}
.login-opening p{top:calc(50% + 48px)}
.login-opening .loader-credit{top:calc(50% + 72px);animation:none}
#app.login-aperture{position:relative;z-index:1001;background:var(--ui-bg)}
.login-logo-flight{position:fixed;z-index:1002;pointer-events:none;object-fit:contain;transform-origin:center}
@media(prefers-reduced-motion:no-preference){
 .portal-reloading #portal-startup .portal-glass{animation:reload-logo-in 520ms cubic-bezier(.3,.05,.2,1) both}
 .portal-reloading #portal-startup :is(p,.loader-credit){animation:reload-caption-in 520ms ease both}
}
@keyframes reload-logo-in{
 from{transform:translate(-50%,-50%) translate(calc(-50vw + 24px + 31%),calc(-50dvh + 24px + 31%)) scale(.62)}
 to{transform:translate(-50%,-50%)}
}
@keyframes reload-caption-in{0%,60%{opacity:0}100%{opacity:1}}

/* Compact, responsive card shared by authenticator enrollment and verification. */
.login.staff-mfa-card{box-sizing:border-box;width:min(480px,calc(100% - 24px));margin:clamp(8px,3svh,24px) auto;padding:clamp(16px,3vw,26px)}
.staff-mfa-card .staff-mfa-logo{display:block;width:min(180px,65%);height:auto;object-fit:contain;margin:0 0 12px}
.staff-mfa-card h1{font-size:clamp(19px,4vw,23px);margin:0 0 8px}
.staff-mfa-card p{font-size:13px;line-height:1.45;margin:0 0 8px}
.staff-mfa-card form#staff-mfa{margin:12px 0 0;gap:8px}
#staff-mfa-error:empty{display:none}
.staff-mfa-card form .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.staff-mfa-card form .actions button{height:auto;min-height:40px;margin:0;font-size:13px;padding:7px}
