:root {
  --bg: #0b0f14;
  --card: #141a22;
  --line: #243042;
  --text: #e8eef6;
  --muted: #7a8494;
  --yellow: #f5c84c;
  --red: #ff6b6b;
  --blue: #3987e5;
  --warnbg: rgba(245, 200, 76, 0.12);
  --riskbg: rgba(255, 107, 107, 0.12);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font: 14px/1.45 ui-sans-serif, system-ui, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  min-height: 100vh;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  border: 1px solid #1c2532;
}
.login-card { width: 100%; max-width: 380px; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: 0.02em; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.lbl { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin: 10px 0 6px; }
.lbl.optional { font-weight: 500; }
input {
  width: 100%;
  background: #0f141c;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
input:focus { outline: none; border-color: var(--blue); }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  background: #1c2736;
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
}
button:hover { border-color: var(--blue); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.banner {
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.banner.wait { background: var(--warnbg); color: var(--yellow); }
.err { color: var(--red); font-size: 13px; margin: 10px 0 0; }
.hidden { display: none !important; }
