.teacherLoginPage{display:block;min-height:100dvh}.teacherLoginPage .teacherLoginShell{margin:0 auto;padding:35px 24px 24px;max-width:1060px;width:100%}.teacherLoginBrand{display:inline-flex;max-width:260px}.teacherLoginBrand img{width:100%;height:74px;object-fit:contain;object-position:left center}.teacherLoginAppearance{float:right;display:flex;gap:8px;align-items:center;padding-top:20px}.teacherLoginCard{max-width:470px;margin:45px auto 30px;padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.teacherLoginCard h1{font-size:28px;letter-spacing:-1px;margin:10px 0 14px}.teacherLoginCard>p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 22px}.teacherLoginCard form{padding:0}.teacherLoginCard label,.teacherAccountDialog label{font-size:12px;line-height:1.6}.teacherLoginCard input,.teacherAccountDialog input{font-size:14px}.teacherLoginCard form>.primary{width:100%;margin-top:5px;min-height:46px}.teacherAuthStatus{font-size:12px;line-height:1.8;color:var(--accent);margin:0 0 16px;overflow-wrap:anywhere}.teacherAuthStatus:empty{display:none}.teacherAuthStatus.error{color:#b23f32}.teacherAuthHint{color:var(--muted);font-size:11px;line-height:1.8;margin:10px 0 20px}.teacherPasswordField{display:flex;align-items:stretch;position:relative;margin-top:7px}.teacherPasswordField input{margin:0;padding-right:62px;min-width:0}.teacherPasswordToggle{position:absolute;right:4px;top:4px;bottom:4px;padding:0 10px;background:transparent;color:var(--text);border:0;font-size:11px;cursor:pointer}.teacherOwnerLogin{border-top:1px solid var(--line);padding-top:24px;margin-top:25px}.teacherOwnerLogin>span{display:block;font-size:10px;color:var(--muted);margin-bottom:12px}.teacherOwnerLogin>a{display:block;text-align:center;text-decoration:none;font-size:12px;line-height:1.5;padding:13px 8px}.teacherLoginFoot{text-align:center;font-size:10px;color:var(--muted);line-height:1.8}.teacherSetupNotice{background:var(--accent-soft);color:var(--text);padding:13px 15px;border-radius:var(--radius);font-size:12px;line-height:1.8;margin-bottom:20px}.teacherLoginCard #teacherSetupCancel{display:block;margin:12px auto 0}.teacherAccountTools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.teacherAccountTools>button,.teacherAccountTools>a{font-size:11px;white-space:nowrap;padding:9px 11px;text-decoration:none}.teacherAccountIdentity{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.teacherAccountDialog{max-width:820px;max-height:90dvh;overflow:auto}.teacherAccountDialog .modulehead{margin-bottom:16px}.teacherAccountDialog .modulehead h2{font-size:21px}.teacherAccountDialog .modulehead button{flex:none}.teacherAccountDialog .teacherStaffList{margin:24px 0 0}.teacherStaffRow{padding:18px 0;border-top:1px solid var(--line);display:flex;gap:16px;align-items:center;justify-content:space-between}.teacherStaffRow>div:first-child{min-width:0;overflow-wrap:anywhere}.teacherStaffRow b{font-size:14px}.teacherStaffRow p{margin:7px 0 0;color:var(--muted);font-size:12px}.teacherStaffRow .rowactions{flex:none}.teacherStaffRow .chip{margin-left:5px}.teacherAccountDialog .teacherResetForm{border-top:1px solid var(--line);padding:18px 0;margin:0}.teacherAccountDialog .teacherResetForm label{max-width:420px}.teacherAccountDialog #teacherStaffCreate{padding:20px}.teacherAccountDialog #teacherStaffCreate h3{font-size:15px;margin:0 0 20px}.teacherAccountDialog #teacherStaffCreate .teacherAuthHint{margin-bottom:14px}.teacherAccountDialog #teacherPasswordForm{max-width:470px}.teacherAccountDialog .teacherLegacyNotice{font-size:11px;line-height:1.8;color:var(--muted);margin-top:22px}button:disabled{cursor:wait;opacity:.6}:root[data-mode="dark"] .teacherAuthStatus.error{color:#ffb4a7}@media(max-width:1200px){main>header{flex-wrap:wrap;height:auto;min-height:74px;padding:15px 0;gap:12px}.headerTools{flex-wrap:wrap}.teacherAccountTools{width:100%;justify-content:flex-end}}@media(max-width:650px){.teacherLoginPage .teacherLoginShell{padding:20px 16px}.teacherLoginBrand{max-width:210px;display:flex;margin:0 auto}.teacherLoginBrand img{height:60px;object-position:center}.teacherLoginAppearance{float:none;justify-content:center;padding-top:18px}.teacherLoginCard{margin:28px auto 24px;padding:26px 22px}.teacherLoginCard h1{font-size:25px}.teacherAccountTools{justify-content:flex-start}.teacherStaffRow{align-items:flex-start;flex-direction:column;gap:12px}.teacherStaffRow .rowactions{flex-wrap:wrap}.teacherAccountDialog .modulehead{display:flex}.teacherAccountDialog #teacherStaffCreate{padding:16px}.teacherAccountDialog .two{grid-template-columns:1fr}}

.teacherLoginCard form[hidden]{display:none}main>header:has(.teacherAccountTools){height:auto;min-height:104px;flex-wrap:wrap;gap:12px;padding:15px 0}.teacherAccountTools{width:100%;justify-content:flex-end}@media(max-width:650px){.teacherAccountTools{justify-content:flex-start}}
