:root {
  --bg: #070707;
  --panel: #111;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #f5f5f5;
  --err: #ff6b6b;
  --ok: #4ade80;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .04em; text-decoration: none; color: var(--text); }
.nav { display: flex; align-items: center; gap: 14px; }
.navlink {
  color: var(--text);
  text-decoration: none;
  font-size: .88rem;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.navlink:hover { border-color: #555; }
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px;
}
.card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
h1 { font-size: 1.5rem; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 24px; font-size: .95rem; }
label { display: block; font-size: .82rem; color: var(--muted); margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 11px 12px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-size: .95rem;
}
input:focus { outline: none; border-color: #555; }
label.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--text);
  font-size: .85rem;
}
label.check input { width: auto; margin-top: 2px; }
button {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  background: var(--accent);
  color: #070707;
  border: none;
  border-radius: 9px;
  font-weight: 650;
  font-size: .95rem;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }
.alt { margin-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; }
.alt a { color: var(--text); }
.linkbtn {
  width: auto;
  margin: 14px auto 0;
  display: block;
  padding: 0;
  background: none;
  color: var(--muted);
  font-weight: 400;
  font-size: .85rem;
  text-decoration: underline;
}
.msg { margin-top: 16px; font-size: .88rem; min-height: 1.1em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.row .k { color: var(--muted); font-size: .82rem; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.logout { width: auto; margin: 0; padding: 8px 14px; font-size: .85rem; }
.muted { color: var(--muted); font-size: .82rem; }
.admin { max-width: 560px; }
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.urow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.urow:last-child { border-bottom: none; }
.urow button:disabled { opacity: .4; }
