* { box-sizing: border-box; }

:root {
  --bg: #101014;
  --panel: #1a1a21;
  --panel2: #23232c;
  --text: #e8e8ee;
  --muted: #9a9aa8;
  --accent: #4f8cff;
  --danger: #e05555;
  --radius: 10px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }

button {
  font: inherit;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid #34343f;
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
}
button:hover { background: #2b2b36; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { filter: brightness(1.1); }
button.danger { color: var(--danger); border-color: #5a2c2c; }

input[type="text"], input[type="password"], textarea {
  font: inherit;
  width: 100%;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid #34343f;
  border-radius: var(--radius);
  padding: 10px 12px;
}
input:focus, textarea:focus { outline: 1px solid var(--accent); }

textarea { resize: vertical; min-height: 260px; line-height: 1.5; }

.card {
  background: var(--panel);
  border: 1px solid #2a2a34;
  border-radius: 14px;
  padding: 20px;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-wrap .card { width: 100%; max-width: 380px; }
.auth-wrap h1 { font-size: 22px; margin: 0 0 16px; }
.auth-wrap label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
.auth-wrap button { width: 100%; margin-top: 18px; }
.error { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 18px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
