:root {
  --ink: #1c1a17;
  --muted: #6f6a63;
  --line: #e2ddd4;
  --bg: #f4f1ea;
  --card: #fbf9f4;
  --accent: #8a6d3b;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: grid;
  place-items: center;
}
.login-wrap { width: min(92vw, 380px); text-align: center; }
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 18px 50px -30px rgba(0,0,0,0.4);
  text-align: left;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 26px;
  margin: 0;
  text-align: center;
  letter-spacing: 0.2px;
}
.sub { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; text-align: center; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
input {
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138,109,59,0.14); }
button {
  margin-top: 6px;
  padding: 12px;
  border: none;
  border-radius: 9px;
  background: var(--ink);
  color: #f7f3ea;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
button:hover { background: #322d27; }
.err { color: #a23b2e; font-size: 13px; margin: 2px 0 0; text-align: center; }
.foot { margin-top: 16px; color: var(--muted); font-size: 12px; }

/* Light mode only. */
