:root {
  color-scheme: light;
  --ink: #161815;
  --muted: #6d7168;
  --paper: #f1efe8;
  --cream: #faf8f1;
  --line: #d4d1c6;
  --accent: #c83e2e;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); }
.statement { padding: 46px 56px; display: flex; flex-direction: column; min-height: 100vh; }
.wordmark { width: fit-content; color: inherit; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.statement-copy { margin: auto 0 64px; max-width: 780px; }
.eyebrow { margin: 0 0 22px; font-size: 11px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
h1 { margin: 0; font: 500 clamp(48px, 6vw, 88px)/1.08 "Songti SC", "STSong", serif; letter-spacing: -.04em; }
.lead { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.tool-index { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.tool-index li { padding: 15px 12px 0 0; font-size: 11px; color: #41443f; }
.tool-index span { display: block; margin-bottom: 7px; color: #96998f; font-family: ui-monospace, monospace; }
.auth-panel { background: var(--cream); border-left: 1px solid var(--line); display: grid; place-items: center; padding: 48px; }
.panel-inner { width: min(100%, 420px); }
.mode-line { display: flex; gap: 12px; align-items: center; margin-bottom: 52px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.mode-line span:first-child { color: var(--accent); font-family: ui-monospace, monospace; }
h2 { margin: 0 0 12px; font: 500 38px/1.2 "Songti SC", "STSong", serif; }
.intro { margin: 0 0 34px; color: var(--muted); font-size: 14px; }
form { display: grid; gap: 22px; }
label span { display: block; margin-bottom: 9px; color: #4e514b; font-size: 12px; }
input { width: 100%; border: 0; border-bottom: 1px solid #9ea096; background: transparent; padding: 10px 0 12px; font: inherit; font-size: 16px; outline: none; border-radius: 0; }
input:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.submit { margin-top: 12px; min-height: 54px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; font: inherit; cursor: pointer; transition: background .2s, color .2s; }
.submit:hover { background: transparent; color: var(--ink); }
.submit:disabled { opacity: .55; cursor: wait; }
.switch { margin-top: 22px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.switch:hover { border-color: currentColor; }
.privacy { margin: 60px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #8a8d84; font-size: 11px; line-height: 1.7; }
.error { display: none; margin: -18px 0 22px; padding: 11px 13px; color: #8e251b; background: #f6dfd9; border-left: 3px solid var(--accent); font-size: 13px; }
.error.show { display: block; }
@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .statement { min-height: auto; padding: 28px 24px 36px; }
  .statement-copy { margin: 90px 0 48px; }
  h1 { font-size: clamp(42px, 12vw, 64px); }
  .tool-index { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--line); padding: 56px 24px; min-height: 650px; }
}
