:root {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #e7e9ee;
  --muted: #9aa3af;
  --accent: #5b8cff;
  --border: #2a2f3a;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

header, footer {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h1 { font-size: 2.25rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; }
p { color: var(--muted); }

a { color: var(--accent); }

/* login / centered card layouts */
.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}

.card h1 {
  font-size: 1.5rem;
  margin-top: 0;
}

input, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}

input[type="password"], input[type="text"], textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  margin: 0.4rem 0 1rem;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover { opacity: 0.9; }

.message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.message.error { color: #ff6b6b; }
.message.success { color: #5fd68a; }

.admin-field {
  margin-bottom: 1.25rem;
}

.admin-fields {
  margin-bottom: 1.5rem;
}
