/* 浣溪设计登录页 · 由 build/site_login.py 生成。独立文件，不依赖 tokens.css。 */
:root {
  color-scheme: light;
  --login-blue: #1E59A0;
  --login-blue-hover: #0F437F;
  --login-teal: #33AF9E;
  --login-ink: #151B26;
  --login-text: #535A64;
  --login-muted: #656C76;
  --login-border: #878E97;
  --login-ring: #3A74BD;
  --login-danger: #A80C18;
  --login-danger-bg: #FFF4F3;
  --login-white: #FFFFFF;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; display: grid; place-items: center; padding: 24px;
  background: var(--login-white); color: var(--login-ink);
  font: 16px/1.6 "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
.selvedge { position: fixed; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--login-blue), var(--login-teal)); }
main { width: 100%; max-width: 392px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand img { width: 44px; height: 44px; display: block; background: var(--login-white); border-radius: 10px; padding: 4px; box-shadow: inset 0 0 0 1px var(--login-border); }
.brand b { display: block; font-size: 1.02rem; line-height: 1.3; }
.brand-text span { display: block; font-size: .8rem; color: var(--login-muted); }
h1 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 6px; letter-spacing: -.01em; }
.lede { margin: 0 0 24px; color: var(--login-text); font-size: .95rem; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-size: .9rem; font-weight: 600; }
input {
  font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  color: var(--login-ink); background: var(--login-white); border: 1px solid var(--login-border);
}
input::placeholder { color: var(--login-muted); opacity: 1; }
input:hover { border-color: var(--login-ink); }
input:focus-visible { outline: 2px solid var(--login-ring); outline-offset: 2px; border-color: var(--login-ring); }
button {
  font: inherit; font-weight: 600; width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 8px;
  color: var(--login-white); background: var(--login-blue); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button:hover { background: var(--login-blue-hover); }
button:focus-visible { outline: 2px solid var(--login-ring); outline-offset: 2px; }
button[disabled] { cursor: progress; opacity: .86; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.alert {
  display: flex; gap: 8px; align-items: flex-start; margin: 0 0 4px; padding: 10px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--login-danger); background: var(--login-danger-bg); border: 1px solid var(--login-danger);
}
.alert svg { flex: none; margin-top: 2px; }
.hint { margin: 18px 0 0; font-size: .82rem; color: var(--login-muted); }
.foot { margin: 22px 0 0; font-size: .76rem; color: var(--login-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
