/* Entry page for the closed pilot. Plain CSS: it loads before the app, so no Tailwind and no Rubik. */
:root {
  --ink: #33261d;
  --paper: #fff7ec;
  --accent: #ffc857;
  font-family: system-ui, -apple-system, 'Arial Hebrew', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}

main {
  flex: 1;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mark {
  width: 7rem;
  height: 7rem;
}

h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: 2.5rem;
  line-height: 1.1;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  opacity: 0.8;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  text-align: start;
}

input {
  width: 100%;
  font: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
}

input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--ink);
}

button {
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrong {
  display: none;
  margin: 0;
  font-weight: 600;
  color: #8a4a12;
}

/* The server sends a wrong code back to /#wrong. */
.wrong:target {
  display: block;
}

.help {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  opacity: 0.7;
}

footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
