:root {
  --ink: #172231;
  --navy: #1f344d;
  --navy-soft: #2c4969;
  --paper: #f8fafb;
  --canvas: #e9eef1;
  --muted: #687581;
  --line: #ccd6dc;
  --coral: #df6353;
  --coral-soft: #f7e2de;
  --sage: #dfe9e4;
  --sans: "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif SC", serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(63,101,143,.28); outline-offset: 2px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(410px, 1.05fr) minmax(420px, .95fr); }
.brand-room { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(30px, 6vw, 82px); background: var(--navy); color: #f5f8fa; }
.brand-room::before { content: ""; position: absolute; inset: 0; opacity: .13; background: repeating-linear-gradient(90deg, transparent 0 17px, #fff 18px 19px), repeating-linear-gradient(0deg, transparent 0 17px, #fff 18px 19px); transform: rotate(-6deg) scale(1.12); }
.brand-line, .brand-copy, .weave-card, .room-note { position: relative; z-index: 1; }
.brand-line { display: flex; align-items: center; gap: 14px; font: 600 25px var(--display); letter-spacing: .11em; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 4px 13px 4px 13px; font: 20px var(--display); }
.brand-copy { margin: auto 0; max-width: 600px; }
.eyebrow, .desk-index { color: #a7c0d6; font: 10px var(--mono); letter-spacing: .16em; }
.brand-copy h1 { margin: 25px 0 20px; font: 600 clamp(42px, 5.2vw, 72px)/1.16 var(--display); letter-spacing: -.04em; }
.brand-copy p { max-width: 500px; color: #c7d2dc; font-size: 14px; line-height: 1.9; }
.weave-card { width: min(370px, 80%); height: 72px; display: grid; grid-template-columns: auto repeat(5, 1fr) auto; gap: 8px; align-items: center; margin-top: 20px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.055); }
.weave-card span, .weave-card b { font: 9px var(--mono); color: #a7c0d6; letter-spacing: .1em; }
.weave-card i { height: 100%; background: repeating-linear-gradient(135deg, var(--coral) 0 3px, transparent 3px 7px); opacity: .8; }
.room-note { margin: auto 0 0; color: #9fb0bd; font-size: 10px; letter-spacing: .05em; }

.access-desk { min-height: 100vh; display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 82% 12%, rgba(63,101,143,.08), transparent 32%), var(--paper); }
.desk-card { width: min(440px, 100%); }
.desk-index { color: var(--navy-soft); }
.desk-card h2 { margin: 22px 0 10px; font: 600 38px/1.2 var(--display); }
.desk-intro { margin: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.7; }
form { display: grid; }
label { margin: 15px 0 7px; color: #4f5e69; font-size: 10px; letter-spacing: .06em; }
input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 0 13px; transition: border-color .18s, box-shadow .18s; }
input:focus { border-color: var(--navy-soft); box-shadow: 0 8px 22px rgba(31,52,77,.08); }
form button { min-height: 48px; margin-top: 25px; border: 0; border-radius: 8px; background: var(--navy); color: white; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 12px; font-weight: 650; }
form button:hover { background: var(--navy-soft); }
form button:disabled { opacity: .55; cursor: wait; }
.form-message { min-height: 22px; margin-top: 14px; color: #a14337; font-size: 11px; line-height: 1.5; }
.access-rule { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line); }
.access-rule span { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); }
.access-rule p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-room { min-height: 300px; padding: 28px; }
  .brand-copy { margin: 52px 0 20px; }
  .brand-copy h1 { font-size: 38px; margin: 16px 0 10px; }
  .brand-copy p, .weave-card { display: none; }
  .room-note { margin-top: auto; }
  .access-desk { min-height: auto; padding: 44px 24px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
