:root {
  color-scheme: dark;
  --bg: #0b1019;
  --card: #121b29;
  --line: #34465f;
  --ink: #edf3fb;
  --muted: #a1b0c6;
  --mint: #5cdbbf;
  --error: #ffaaa8;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  background: radial-gradient(ellipse at 55% 0%, #112329, transparent 65%), var(--bg);
  color: var(--ink);
  padding: clamp(16px, 5vw, 32px);
}
h1, p { margin: 0; }
.login { width: min(100%, 420px); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid #33625c; border-radius: 9px; background: #173433;
  color: var(--mint); font: 700 .8rem/1 ui-monospace, monospace;
}
.panel {
  min-width: 0; padding: clamp(20px, 6vw, 32px);
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: 0 18px 48px #05081185;
}
.eyebrow { color: var(--mint); font-size: .85rem; font-weight: 700; }
h1 { margin: 5px 0 8px; font-size: clamp(1.55rem, 6vw, 1.9rem); line-height: 1.25; }
.muted { color: var(--muted); font-size: .93rem; }
.error {
  margin-top: 18px; padding: 9px 12px; border: 1px solid #724551; border-radius: 8px;
  background: #311f27; color: var(--error); font-size: .91rem;
}
form { margin-top: 22px; }
label { display: block; margin-bottom: 8px; font-weight: 650; }
.password-field { display: flex; gap: 8px; }
input, button { min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input { flex: 1; min-width: 0; width: 100%; background: var(--bg); color: var(--ink); }
button { cursor: pointer; background: #19263a; color: var(--ink); white-space: nowrap; }
button:hover { background: #233552; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.submit { display: block; width: 100%; margin-top: 18px; border-color: transparent; background: var(--mint); color: #09221b; font-weight: 750; }
.submit:hover { background: #84edd4; }



body {
  background: linear-gradient(180deg, #07102020, #07112048),
    url("./assets/starfield-v1.webp") center / cover no-repeat, #080e18;
}
.brand-mark {
  border-color: #55738d; border-radius: 12px; background: linear-gradient(145deg, #25445b, #132538);
  box-shadow: inset 2px 2px 5px #557e8b66, inset -3px -3px 7px #091424;
}
.panel {
  border-color: #506985; border-radius: 20px; background: linear-gradient(155deg, #1d2d45ed, #101a2af5 66%);
  box-shadow: inset 3px 3px 9px #40567655, inset -6px -6px 16px #060d17, 0 25px 80px #030710bd;
  backdrop-filter: blur(8px);
}
input, button { border-radius: 11px; }
input { background: #0e1829; box-shadow: inset 2px 2px 7px #080e19; }
button { background: linear-gradient(145deg, #203551, #15263e); }
button:hover { background: #294262; }
.submit { background: linear-gradient(145deg, #74e7cd, #52cbb7); }
.submit:hover { background: #84edd4; }
.error { border-radius: 11px; }
@media (max-width: 600px) { body { background-position: center, 22% center; } }

