.ht-login{margin:0;min-height:100vh;min-height:100svh;background:var(--ht-surface);color:var(--ht-ink);font:var(--ht-body)/var(--ht-body-line) var(--ht-font);display:grid;place-items:center;padding:48px 24px;box-sizing:border-box;color-scheme:light}
.ht-login *,.ht-login *::before,.ht-login *::after{box-sizing:border-box}
.ht-login [hidden]{display:none}
.ht-login p{margin:0}
.ht-login .login-entry{width:100%;max-width:380px}
.ht-login .login-brand{width:min(100%, 340px);margin:0 auto 24px}
/* Lift the supplied cream matte to white, then let the page show through it. */
.ht-login .login-brand img{
  display:block;
  width:100%;
  height:auto;
  filter:brightness(1.24);
  mix-blend-mode:multiply;
}
.ht-login .login-intro{font-family:var(--ht-serif);text-align:center;color:var(--ht-ink);font-size:var(--ht-lg);margin-bottom:32px}
.ht-login .login-field{margin-bottom:20px}
.ht-login label{display:block;font-size:var(--ht-sm);font-weight:600;margin-bottom:8px}
.ht-login .login-field input,.ht-login button{font:inherit;border-radius:var(--ht-radius);min-height:48px}
.ht-login .login-field input{display:block;width:100%;min-width:0;padding:10px 12px;background:var(--ht-surface);color:var(--ht-ink);border:1px solid var(--ht-control-line);line-height:1.5}
.ht-login .login-password{position:relative}
.ht-login .login-password input{padding-right:68px}
.ht-login button{touch-action:manipulation;cursor:pointer}
.ht-login #toggle-password{position:absolute;right:4px;top:2px;min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--ht-muted);font-size:var(--ht-sm)}
.ht-login #toggle-password:hover{color:var(--ht-ink);background:var(--ht-wash)}
.ht-login .login-submit{font-family:var(--ht-serif);width:100%;margin-top:4px;padding:12px 20px;border:1px solid var(--ht-accent);background:var(--ht-accent);color:var(--ht-inverse);font-size:var(--ht-body);font-weight:600;line-height:1.5}
.ht-login .login-submit:hover{background:var(--ht-accent-hover)}
.ht-login .login-submit:disabled{opacity:.55;cursor:wait}
.ht-login :where(input,button,summary,[tabindex]):focus-visible{outline:3px solid var(--ht-focus);outline-offset:3px}
.ht-login input:focus-visible{outline-offset:2px}
.ht-login .login-error{font-size:var(--ht-sm);color:var(--ht-error);line-height:var(--ht-meta-line);margin:0 0 16px;overflow-wrap:anywhere}
.ht-login .login-remember{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  margin-bottom:12px;
  color:var(--ht-muted);
  font-weight:400;
  cursor:pointer;
}
.ht-login .login-remember input{width:18px;height:18px;margin:0;accent-color:var(--ht-accent)}
@media(max-width:480px){.ht-login{padding:32px 24px}.ht-login .login-brand{margin-bottom:20px}.ht-login .login-intro{margin-bottom:24px}}
@media(prefers-reduced-motion:no-preference){.ht-login :where(button,input){transition:background-color .16s,color .16s,border-color .16s}}

/* Design System v1 · Color r121b-neutral-1 + editorial-surface-20261109 · Typography r121-type-2. */
.ht-ui {
  --ht-paper:#f5f5f7; --ht-surface:#fff; --ht-wash:#f5f5f7; --ht-ink:#1d1d1f;
  --ht-muted:#69696e; --ht-line:#e1e4e8; --ht-control-line:#86868b; --ht-accent:#1d1d1f; --ht-accent-hover:#343437;
  --ht-tint:#ededf0; --ht-warning:#85551c; --ht-warning-bg:#fbf2e2; --ht-error:#a63830;
  --ht-sidebar-bg:#f5f5f7; --ht-link:#0066cc; --ht-link-hover:#004499; --ht-focus:#0066cc;
  --ht-success:#285a47; --ht-success-bg:#eaf1ec; --ht-inverse:#fff; --ht-backdrop:#1d1d1f5c;
  --ht-font: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --ht-serif: "Iowan Old Style","Palatino Linotype","Noto Serif CJK SC","Songti SC",SimSun,serif;
  --ht-s1:4px; --ht-s2:8px; --ht-s3:12px; --ht-s4:16px; --ht-s5:20px; --ht-s6:24px; --ht-s8:32px; --ht-s10:40px; --ht-s12:48px;
  --ht-radius:6px; --ht-radius-lg:10px; --ht-shadow:0 16px 60px #1d1d1f24;
  --ht-sidebar:216px; --ht-content:1600px; --ht-reader:760px;
}
/* Typography also serves the independent legacy workspace; its colors stay local. */
.ht-ui,html.ht-document {
  --ht-xs:.75rem; --ht-sm:.875rem; --ht-md:1rem; --ht-body:1rem; --ht-lg:1.125rem;
  --ht-title:1.25rem; --ht-page-compact:1.5rem; --ht-page:1.75rem; --ht-reading:1.125rem;
  --ht-heading-line:1.4; --ht-body-line:1.65; --ht-meta-line:1.6; --ht-reading-line:1.85;
}
