/* Placeholder palette - swap for The BrowKeeper's actual brand colors/fonts
   before launch. Kept intentionally minimal/classless per the "low-JS,
   mobile-friendly" requirement - no CSS framework dependency. */
:root {
  --color-bg: #faf7f5;
  --color-text: #2b2320;
  --color-accent: #a8557c;
  --color-accent-contrast: #ffffff;
  --color-border: #e4dcd8;
  --color-error: #b3261e;
  --color-success: #2e7d32;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

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

.brand small {
  font-weight: normal;
  opacity: 0.7;
}

main {
  padding: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.login-card {
  max-width: 24rem;
  margin: 3rem auto;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.25rem;
}

input,
button {
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

button {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border: none;
  cursor: pointer;
}

button.link-button {
  background: none;
  color: var(--color-text);
  text-decoration: underline;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.error {
  color: var(--color-error);
}

.success {
  color: var(--color-success);
}

details {
  margin: 0.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

@media (max-width: 480px) {
  main {
    padding: 0.5rem;
  }
}
