:root {
  color-scheme: dark;
  --bg: #0f1115;
  --card: #171a21;
  --border: #2a2f3a;
  --text: #e7e9ee;
  --muted: #9aa2b1;
  --accent: #4f8cff;
  --error: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 1.5rem;
}

.card {
  width: min(640px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.card.login { max-width: 380px; }

h1 { font-size: 1.4rem; margin: 0 0 1rem; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.who { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--muted); }

.logout { color: var(--accent); text-decoration: none; }
.logout:hover { text-decoration: underline; }

.hint, .footer { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.footer { margin-top: 1rem; }

form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--muted); }

input[type="text"], input[type="password"], input[type="file"] {
  background: #0f1115;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .6rem .7rem;
  font-size: 1rem;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

button:hover { filter: brightness(1.1); }

.error { color: var(--error); font-size: .9rem; }
code { background: #0f1115; padding: .1rem .35rem; border-radius: 4px; }
