:root {
  color-scheme: light;
  --ink: #16304a;
  --muted: #63758a;
  --blue: #205be8;
  --bg: #f2f5fa;
  --line: #e0e6ef;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}
.login-shell {
  width: 100%;
  max-width: 488px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 48px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 24px 4px; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border: 1px solid #d6e1fa;
  border-radius: 12px;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 23px;
  font-weight: 750;
}
.brand p { margin: 0; font-weight: 650; }
.brand p span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.login-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 16px;
  background: #fff;
  padding: 30px 32px 26px;
  box-shadow: 0 8px 28px #16304a06;
}
.eyebrow { margin: 0; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 9px 0 8px; font-size: 28px; line-height: 1.35; }
.intro { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.field { min-width: 0; margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
input, button { font: inherit; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.password-field { display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 9px; }
.password-field:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.password-field input { border: 0; border-radius: 9px 0 0 9px; }
.password-field input:focus { outline: none; }
button { appearance: none; cursor: pointer; min-height: 44px; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.password-toggle {
  flex: 0 0 62px;
  border: 0;
  border-radius: 0 9px 9px 0;
  padding: 8px 10px;
  background: #fff;
  color: #244f9b;
  font-size: 13px;
  font-weight: 600;
}
.password-toggle:hover { background: #f2f5fa; }
.submit {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  margin-top: 6px;
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.submit:hover { background: #174ccc; }
button:disabled { opacity: .65; cursor: wait; }
.error {
  margin: 4px 0 16px;
  border: 1px solid #edc3c9;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff0f1;
  color: #992539;
  font-size: 13px;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
.session-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
footer { margin-top: 22px; padding: 0 4px; color: var(--muted); font-size: 12px; text-align: center; }
footer p { margin: 3px 0; overflow-wrap: anywhere; }
@media (max-width: 450px) {
  .login-shell { padding: 32px 16px; }
  .login-card { padding: 26px 22px 22px; }
  h1 { font-size: 26px; }
}
@media (max-height: 660px) {
  .login-shell { justify-content: flex-start; padding-top: 24px; padding-bottom: 24px; }
}
