:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  background: #191b1d;
  color: #f1f2f1;
  --surface: #222528;
  --line: #43484c;
  --quiet-line: #303438;
  --muted: #b4bdc3;
  --accent: #b9d7ea;
  --on-accent: #151e24;
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--accent); color: var(--on-accent); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.login-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--quiet-line);
}
.brand-lockup { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.brand-symbol { color: var(--accent); font-size: 23px; line-height: 1; }
main { flex: 1; display: grid; place-items: center; padding: 44px 24px 92px; }
.login-shell {
  width: min(100%, 352px);
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
h1 { margin: 0; font-size: 2.25rem; line-height: 1.22; font-weight: 650; text-wrap: balance; }
.intro { margin: 10px 0 32px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 600; }
input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #5a6268;
  border-radius: 6px;
  padding: 9px 12px;
  color: inherit;
  caret-color: var(--accent);
  background: var(--surface);
  font-size: 16px;
}
input:hover { border-color: #899197; }
.password-field { position: relative; }
.password-field input { padding-right: 67px; }
#show-password {
  position: absolute;
  inset: 1px 1px 1px auto;
  min-width: 56px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
#show-password:hover { color: #f1f2f1; }
#login-submit {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
#login-submit:hover { background: #d4e7f2; }
#login-submit:disabled { opacity: .72; cursor: wait; }
.form-error { margin: 0; padding: 8px 10px; border: 1px solid #694c45; border-radius: 6px; background: #2d2423; color: #edb9ae; font-size: 14px; line-height: 1.6; text-wrap: pretty; }
@media (max-width: 600px) {
  .login-header { min-height: 62px; }
  main { place-items: start center; padding-top: clamp(48px, 14svh, 96px); padding-bottom: 40px; }
}
