:root {
  color-scheme: dark;
  --bg: #14161a;
  --card: #1b1e23;
  --line: #333840;
  --text: #e4e6ea;
  --muted: #8a9099;
  --accent: #6ca8ff;
  --up: #f24b4b;
  --down: #2fc46e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
.box {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.box.wide { max-width: 680px; }
h1 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.sub { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
label { display: block; margin: 12px 0 5px; font-size: 12.5px; color: var(--muted); }
input[type="text"], input[type="password"] {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #111317;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
}
input:focus { outline: none; border-color: var(--accent); }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  margin-top: 18px;
  background: var(--accent);
  color: #0d1117;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(1.08); }
.msg {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12.5px;
}
.msg.err { background: rgba(242, 75, 75, 0.14); border: 1px solid var(--up); color: #ff8080; }
.msg.ok { background: rgba(47, 196, 110, 0.14); border: 1px solid var(--down); color: #6be59b; }
.links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 500; }
code { background: #111317; padding: 2px 5px; border-radius: 3px; font-size: 12px; color: #9ec6ff; }
.row-inline { display: flex; gap: 10px; align-items: flex-end; }
.row-inline > div { flex: 1; }
.row-inline button { width: auto; padding: 0 18px; margin-top: 0; }
