/* The sign-in screen uses the same shell, portrait crop and palette as the cabinet. */
.auth-document{height:100%;overflow:hidden;overscroll-behavior:none;scroll-snap-type:none;scroll-padding-top:100px}.auth-page{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}.auth-header .back-home{display:flex;align-items:center;gap:10px;padding:12px 20px;border:1px solid #ad61e6;border-radius:99px;color:#eee0ff;font-size:14px;background:#47118433}.auth-header .back-home:hover{background:#8236cb44}.auth-page .auth-layout{height:100svh;min-height:0;overflow:hidden;gap:35px}.auth-card{position:relative;z-index:3;width:100%;max-width:490px;padding:12px 0}.auth-page .form-heading h1{font-size:clamp(44px,4.3vw,64px);line-height:1.02;letter-spacing:-2px;margin:0 0 16px}.form-heading>p:not(.eyebrow){font-size:15px;color:#cdb9ee;margin:0 0 24px}.form-heading .eyebrow{margin-bottom:16px}.auth-fields,.role-options{border:0;min-width:0;padding:0;margin:0}.role-options{margin-bottom:24px}.role-options legend{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.role-choices{display:grid;grid-template-columns:1fr 1fr 1.45fr;padding:5px;gap:4px;border:1px solid #9950da;border-radius:99px;background:#48138a55}.role-choices label{position:relative;cursor:pointer;min-width:0}.role-choices input{position:absolute;width:1px;height:1px;opacity:0}.role-choices span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 8px;border-radius:99px;color:#d9bfee;font-size:14px;font-weight:700;transition:background .3s,color .3s,box-shadow .3s}.role-choices input:checked+span{color:white;background:linear-gradient(145deg,#a036ff,#7010d6);box-shadow:0 4px 18px #20054055}.role-choices input:focus-visible+span{outline:3px solid #ffbd67;outline-offset:2px}.role-choices input:disabled+span{cursor:wait}.auth-inputs{min-height:274px}.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{min-width:0;min-height:78px;margin:0}.field>label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#eadcff}.input-wrap{position:relative}.field input{display:block;box-sizing:border-box;width:100%;height:46px;border:1px solid #b478de77;border-radius:13px;background:#23065480;color:white;padding:11px 14px;font:16px Arial,sans-serif;transition:border-color .2s,box-shadow .2s}.field input::placeholder{color:#ba97d6;font-size:14px}.field input:focus{outline:none;border-color:#dfa6ff;box-shadow:0 0 0 3px #b35ce62c}.field input[aria-invalid=true]{border-color:#ffb797}.field input:-webkit-autofill{-webkit-text-fill-color:white;box-shadow:0 0 0 1000px #341260 inset}.field-error{min-height:17px;margin:2px 0 0;font-size:11px;color:#ffcca5;line-height:1.4}.password-toggle{position:absolute;right:3px;top:1px;display:grid;place-items:center;width:44px;height:44px;background:none;border:0;border-radius:10px;color:#d7b9ef;cursor:pointer}.password-toggle:hover{background:#a45cd526}.password-toggle svg{width:21px;height:21px}.eye-slash{display:none}.password-toggle[aria-pressed=true] .eye-slash{display:block}#access-code,#teacher-password{padding-right:52px}.password-help{position:relative;margin:0 0 14px;font-size:13px;color:#dac4ef}.password-help summary{cursor:pointer;min-height:30px;text-decoration:underline;text-underline-offset:4px;display:flex;align-items:center;width:fit-content}.password-help p{position:absolute;z-index:5;bottom:30px;inset-inline:0;margin:0;padding:16px;background:#39116f;border:1px solid #b878ea;border-radius:14px;box-shadow:0 12px 35px #16042d88;line-height:1.55}.auth-submit{width:100%;min-height:58px;font-size:17px;justify-content:space-between;padding-inline:26px;cursor:pointer}.auth-submit:disabled{opacity:.7;cursor:wait}.auth-submit:focus-visible,.password-toggle:focus-visible,summary:focus-visible{outline:3px solid #ffc46b;outline-offset:4px}.form-feedback{min-height:46px;margin-top:12px}.preview-note,.form-status{font-size:12px;line-height:1.6;margin:0;color:#cdb9ee}.form-status{color:#ffd1a0}.form-feedback:has(.form-status:not([hidden])) .preview-note{display:none}.auth-character .role-portrait{opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s,transform .3s ease-out}.auth-character .role-portrait.is-active{opacity:1;visibility:visible}.auth-character .role-portrait:not(.is-active){animation:none}.auth-page[data-role=teacher] .password-help{visibility:hidden}.auth-fields:disabled{opacity:.7}
@media(max-width:1000px){.auth-card{max-width:440px}.role-choices span{font-size:12px}.auth-page .form-heading h1{font-size:48px}}
@media(max-width:760px){.auth-page .auth-layout{grid-template-columns:1fr;gap:0;padding-block:100px 30px;width:calc(100% - 40px);align-content:start}.auth-page .student-scene{height:230px;min-height:0;width:min(350px,100%);margin:auto}.auth-page .student-scene img{height:193%;width:154%;left:-27%}.auth-card{max-width:480px;margin:auto;padding:8px 0 0}.form-heading{text-align:center}.auth-page .form-heading h1{font-size:40px;margin-bottom:12px}.form-heading h1 br{display:none}.form-heading h1 em::before{content:' '}.form-heading .eyebrow{margin-bottom:10px;font-size:10px}.form-heading>p:not(.eyebrow){font-size:13px;margin-bottom:20px}.role-options{margin-bottom:20px}.auth-inputs{min-height:274px}.role-choices span{font-size:12px}.auth-header .back-home{padding:10px 12px;font-size:12px}.auth-header .back-home svg{width:18px}}
@media(max-width:370px){.auth-page .auth-layout{width:calc(100% - 28px)}.role-choices{gap:0;padding:4px}.role-choices span{font-size:11px;padding-inline:5px}.name-fields{gap:10px}}
@media(prefers-reduced-motion:reduce){.auth-character .role-portrait,.role-choices span{transition:none}.auth-character img{animation:none!important}}
@media(max-width:760px){.auth-fixed-layout{display:block;position:relative;height:100svh;padding-block:82px 8px}.auth-fixed-layout .student-scene{position:absolute;inset:62px auto auto -8px;width:130px;height:145px;margin:0;opacity:.42;pointer-events:none}.auth-fixed-layout .auth-card{padding-top:0}.auth-fixed-layout .form-heading>p:not(.eyebrow){display:none}.auth-fixed-layout .role-options{margin-bottom:12px}.auth-fixed-layout .auth-inputs{min-height:250px}.auth-fixed-layout .form-feedback{min-height:24px;margin-top:6px}}
@media(max-width:370px),(max-height:700px){.auth-fixed-layout{padding-top:74px}.auth-fixed-layout .student-scene{top:54px;height:125px;width:110px}.auth-fixed-layout .form-heading .eyebrow{margin-bottom:4px}.auth-fixed-layout .form-heading h1{font-size:34px;margin-bottom:8px}.auth-fixed-layout .role-options{margin-bottom:8px}.auth-fixed-layout .role-choices span{min-height:40px;padding-block:7px}.auth-fixed-layout .auth-inputs{min-height:232px}.auth-fixed-layout .field{min-height:72px}.auth-fixed-layout .auth-submit{min-height:50px}.auth-fixed-layout .password-help{margin-bottom:8px}.auth-fixed-layout .form-feedback{min-height:20px;margin-top:4px}.auth-fixed-layout .preview-note{font-size:10px}}

/* Keep the fixed sign-in view visually higher so the submit action has breathing room below. */
.role-choices{border:0;box-shadow:inset 0 1px #ffffff25,0 12px 30px #18003424;backdrop-filter:blur(16px)}
.password-help p{border:0;box-shadow:inset 0 1px #ffffff25,0 12px 35px #16042d88}
@media(min-width:761px){
 .auth-page .auth-fixed-layout{grid-template-rows:1fr;align-items:start;padding-top:clamp(100px,11svh,120px);padding-bottom:clamp(60px,8svh,88px)}
 .auth-fixed-layout .student-scene{height:calc(100svh - 188px);max-height:730px;align-self:start}
 .auth-fixed-layout .auth-card{padding-top:0}
}
@media(max-width:760px){
 .auth-page .auth-fixed-layout{padding-top:70px;padding-bottom:36px}
 .auth-fixed-layout .student-scene{top:48px;left:-28px;width:100px;height:112px;opacity:.24}
}
@media(max-width:370px),(max-height:700px){.auth-page .auth-fixed-layout{padding-top:66px;padding-bottom:26px}}
