/* HouseTally auth pages — minimal, self-contained (no external fonts/CDN). */
:root {
  --bg: #faf8f3;
  --card: #ffffff;
  --ink: #1f2421;
  --muted: #6b736e;
  --line: #e7e2d8;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --error: #b3261e;
  --ok: #2f6f5e;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--card);
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(31, 36, 33, 0.06);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 10px;
}

p { line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
p.muted { color: var(--muted); font-size: 14px; }

.status-icon {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
}
.status-icon.ok { background: rgba(47, 111, 94, 0.12); color: var(--ok); }
.status-icon.err { background: rgba(179, 38, 30, 0.10); color: var(--error); }

label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

input[type="password"] {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input[type="password"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

button {
  width: 100%;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: default; }

.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.field-error { color: var(--error); font-size: 13px; margin-top: 8px; min-height: 1em; }

.lang {
  display: flex; gap: 6px; justify-content: flex-end;
  margin-bottom: 8px;
}
.lang button {
  width: auto; margin: 0; padding: 4px 10px;
  background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.spinner {
  width: 28px; height: 28px; margin-bottom: 16px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 999px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }
