body.staff-login{
  --bg:#F6F4F2;--surface:#FFFFFF;--surface2:#FAF8F7;--ink:#1F1A26;--ink2:#4A4453;--muted:#8A8492;
  --line:#ECE8EE;--line2:#E0DBE5;--pri:#CBBCEB;--pri-ink:#33255A;--pri-hover:#C0AEE6;--acc:#7F63BE;
  --acc-soft:#F5F1FC;--warn:#9A600F;--warn-soft:#FAF0DF;--bad:#B3413B;
  display:grid;place-items:center;min-height:100vh;margin:0;padding:24px 16px;
  background:radial-gradient(920px 500px at 50% -10%,rgba(203,188,235,.28),transparent 65%),radial-gradient(680px 420px at 90% 96%,rgba(230,204,216,.22),transparent 60%),var(--bg);color:var(--ink);
  font:14px/1.65 "PingFang SC","HarmonyOS Sans SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  overflow-x:hidden;
}
body.staff-login *,body.staff-login *::before,body.staff-login *::after{box-sizing:border-box}
body.staff-login [hidden]{display:none!important}
body.staff-login .login-card{
  width:min(400px,100%);margin:0;padding:28px 24px 24px;background:var(--surface);
  border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 48px -28px rgba(56,38,92,.22),0 2px 8px rgba(31,26,38,.04);
}
body.staff-login .brand{display:flex;align-items:center;gap:12px;margin:0 0 18px;text-decoration:none;color:inherit}
body.staff-login .brand-seal{
  display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;flex:none;
  color:#422B68;font:600 21px/1 "Songti SC","STSong",serif;
  background:linear-gradient(145deg,#EFE7FA 0%,#DFD0F4 54%,#EEDCE7 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.82),inset 0 0 0 3px rgba(127,99,190,.2),0 6px 14px -8px rgba(86,54,140,.4);
}
body.staff-login .brand-copy{display:flex;flex-direction:column;min-width:0}
body.staff-login .brand-copy strong{color:#1F1A26;font-size:17px;font-weight:600;letter-spacing:.2px;line-height:1.3}
body.staff-login .brand-copy small{color:var(--muted);font-size:12px;line-height:1.4}
body.staff-login .login-card h1{margin:0 0 8px;font-size:22px;font-weight:650;line-height:1.35;color:var(--ink)}
body.staff-login .login-card h2{margin:0 0 8px;font-size:16px;font-weight:650}
body.staff-login #login-description{margin:0 0 16px;color:var(--ink2);line-height:1.7}
body.staff-login .login-card label{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0 0 12px;color:var(--ink2);font-size:13px}
body.staff-login .login-card input{
  width:100%;height:40px;min-height:40px;padding:0 12px;border:1px solid var(--line2);border-radius:9px;
  background:#fff;color:var(--ink);font:inherit;
}
body.staff-login .login-card input:focus{outline:2px solid var(--acc);outline-offset:1px}
body.staff-login .password-visibility-field{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
body.staff-login .password-visibility-field input{flex:1;min-width:0;width:auto}
body.staff-login .password-visibility-toggle{
  flex:none;height:40px;min-height:40px;margin:0;padding:0 12px;border:1px solid var(--line2);border-radius:9px;
  background:#fff;color:var(--ink2);font:inherit;cursor:pointer;
}
body.staff-login #login-error,body.staff-login #totp-error{min-height:1.5em;margin:4px 0 12px;color:var(--bad);line-height:1.6}
body.staff-login #login-error:empty,body.staff-login #totp-error:empty{min-height:0;margin:0}
body.staff-login .login-card .button,body.staff-login #totp-submit,body.staff-login #totp-continue{
  width:100%;height:40px;min-height:40px;margin:4px 0 0;padding:0 14px;border:0;border-radius:9px;
  background:var(--pri);color:var(--pri-ink);font:inherit;font-weight:600;cursor:pointer;
}
body.staff-login .login-card .button:hover,body.staff-login #totp-submit:hover,body.staff-login #totp-continue:hover{background:var(--pri-hover)}
body.staff-login .login-card .button:disabled{opacity:.45;cursor:not-allowed}
body.staff-login #totp-panel,body.staff-login #recovery-panel{margin-top:4px}
body.staff-login #totp-account{margin:0 0 12px;color:var(--ink2)}
body.staff-login #totp-qr{
  display:block;width:180px;height:180px;max-width:100%;margin:0 auto 12px;padding:8px;
  border:1px solid var(--line);border-radius:12px;background:#fff;object-fit:contain;box-sizing:border-box;
}
body.staff-login #totp-manual{margin:0 0 6px;color:var(--muted);font-size:13px}
body.staff-login #totp-secret{
  margin:0 0 8px;padding:10px 12px;border-radius:8px;background:var(--acc-soft);color:var(--ink);
  font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;
  overflow-wrap:anywhere;user-select:text;
}
body.staff-login #totp-secret:empty{display:none}
body.staff-login #totp-app-hint,body.staff-login #totp-enroll-note{margin:0 0 12px;color:var(--ink2);line-height:1.7;overflow-wrap:anywhere}
body.staff-login #totp-back,body.staff-login #recovery-copy{width:100%;height:40px;min-height:40px;margin:8px 0 0;padding:0 14px;border:1px solid var(--line2);border-radius:9px;background:#fff;color:var(--ink2);font:inherit;cursor:pointer}
body.staff-login #recovery-copy{margin-bottom:8px}
body.staff-login #recovery-copy-status{margin:0 0 8px;color:var(--ink2);line-height:1.6}
body.staff-login #recovery-copy-status:empty{display:none}
body.staff-login #totp-issuer{margin:0 0 12px;color:var(--muted);font-size:12px}
body.staff-login #recovery-codes{
  display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0 0 12px;padding:12px;
  list-style:none;border:1px solid var(--line);border-radius:12px;background:var(--surface2);
  font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;user-select:text;
}
body.staff-login #recovery-codes li{min-width:0;overflow-wrap:anywhere;user-select:text}
body.staff-login .login-once{
  margin:0 0 12px;padding:10px 12px;border-radius:8px;background:var(--warn-soft);color:var(--warn);line-height:1.6;
}
body.staff-login :focus-visible{outline:2px solid var(--acc);outline-offset:2px}
body.staff-login .login-desk-link{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.6;text-align:center;overflow-wrap:anywhere}
body.staff-login .login-desk-link a{color:var(--acc);font-weight:600;text-decoration:none}
@media(max-width:420px){
  body.staff-login{padding:16px}
  body.staff-login .login-card{padding:22px 16px}
}

/* 2026-11: the sign-in button is the page's one action; deep lavender with white text so it never reads as disabled. */
body.staff-login .login-card .button,body.staff-login #totp-submit,body.staff-login #totp-continue{background:#7556BB;color:#FFFFFF;box-shadow:0 8px 18px -12px rgba(91,63,170,.8)}
body.staff-login .login-card .button:hover,body.staff-login #totp-submit:hover,body.staff-login #totp-continue:hover{background:#6447AA}
body.staff-login .login-card .button:disabled,body.staff-login #totp-submit:disabled,body.staff-login #totp-continue:disabled{opacity:.5;box-shadow:none}
