/*
 * Standalone styles for the password gate. This page is served straight out of
 * /public, so it can't use Tailwind or next/font — the palette and pill button
 * below are hand-matched to the app's zinc theme.
 */

:root {
  --background: #fafafa;
  --surface: #ffffff;
  --foreground: #171717;
  --muted: #52525b;
  --border: rgba(0, 0, 0, 0.08);
  --ring: #171717;
  --danger: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #0a0a0a;
    --foreground: #fafafa;
    --muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.145);
    --ring: #fafafa;
    --danger: #f87171;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--background);
  color: var(--foreground);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.5rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
}

.label {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.input {
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
}

.input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.error {
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.8125rem;
}

.button {
  height: 2.75rem;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: var(--foreground);
  color: var(--surface);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.button:hover {
  opacity: 0.85;
}

.button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
