:root {
  --bg: #14161a;
  --card: #1d2025;
  --border: #2b2f36;
  --text: #e8e8ea;
  --muted: #8a8f98;
  --accent: #e0435c;
  --accent-hover: #c93850;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

header h1 { font-size: 18px; margin: 0; }

.logout {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.logout:hover { color: var(--text); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 24px 32px;
  padding: 20px 24px;
}

.card h2 {
  margin-top: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  margin-left: 6px;
}

.muted { color: var(--muted); font-size: 14px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 500; }

.table-scroll { overflow-x: auto; }
table.grid th, table.grid td { text-align: center; white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }

.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); }

.inline-form { display: inline; }

input[type=text], input[type=password] {
  background: #101216;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.label-input { border: 1px solid transparent; background: transparent; width: 100%; }
.label-input:hover, .label-input:focus { border-color: var(--border); background: #101216; }

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
button:hover { background: var(--accent-hover); }
button.danger { background: #333; }
button.danger:hover { background: #444; }

input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.login-card h1 { font-size: 18px; margin: 0 0 8px; }
.login-card .error { color: var(--accent); font-size: 13px; margin: 0; }
