/* Access gateway (index.html only). Self-contained: system fonts, no images. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px 16px;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: #1c1a4a; color: #f3f1fb;
  -webkit-font-smoothing: antialiased;
}
.gate { width: 100%; max-width: 400px; }
.gate label { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 18px; }
.gate__row { display: flex; gap: 8px; }
.gate input {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px;
  font: inherit; font-size: 1rem; letter-spacing: .06em; color: #1c1a4a;
  background: #fffefc; border: 2px solid transparent; border-radius: 26px;
}
.gate input:focus { outline: none; border-color: #f2895c; box-shadow: 0 0 0 4px rgba(242, 137, 92, .3); }
.gate input[aria-invalid="true"] { border-color: #f8b996; }
.gate button {
  flex: none; height: 52px; padding: 0 22px; border: 0; border-radius: 26px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .98rem; color: #131234; background: #f2895c;
}
.gate button:hover { background: #f59f78; }
.gate button:focus-visible { outline: 3px solid #fffefc; outline-offset: 3px; }
.gate__error { min-height: 1.5em; margin: 14px 0 0 4px; color: #f8b996; font-size: .95rem; font-weight: 600; }
.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 380px) { .gate__row { flex-direction: column; } .gate button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
