/* REGTEKA gate: the password page. Same "ink and light" look as the deck. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/gate/inter-var-latin.woff2") format("woff2"); }

:root { --ink: #0b0d10; --card: #14171b; --edge: #2a303a; --text: #fbfcfd; --soft: #aab4c0; --mute: #7f8a99; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

.grid {
  position: fixed; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #ffffff09 0, #ffffff09 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(180deg, #ffffff09 0, #ffffff09 1px, transparent 1px, transparent 96px);
}
.glow { position: fixed; width: 110vmax; height: 110vmax; border-radius: 50%; pointer-events: none; }
.glow-a { left: -50vmax; bottom: -70vmax; background: radial-gradient(circle, #2fdc8030 0%, #2fdc8000 62%); }
.glow-b { left: calc(50% - 55vmax); bottom: -78vmax; background: radial-gradient(circle, #5b8cff2b 0%, #5b8cff00 62%); }
.glow-c { right: -50vmax; bottom: -70vmax; background: radial-gradient(circle, #ff5c5c30 0%, #ff5c5c00 62%); }

.gate { position: relative; width: 100%; max-width: 760px; padding: 48px 24px 56px; text-align: center; }

.eyebrow { margin: 0 0 30px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.mark { margin: 0; }
.mark img { display: block; width: min(100%, 560px); height: auto; margin: 0 auto; }

.pulse { display: block; width: 100%; height: 76px; margin: 22px 0 26px; filter: drop-shadow(0 0 9px #5b8cff80); }

.entry { max-width: 520px; margin: 0 auto; }
.label { display: block; margin: 0 0 14px; font-size: 16px; line-height: 1.45; color: var(--soft); }

/* pill field: the ring lives on the container, never inside it (estate rule) */
.pill {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: #14171bd9; border: 1px solid var(--edge); border-radius: 999px;
  box-shadow: inset 0 1px 0 #ffffff0f, 0 24px 60px -24px #000000cc;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pill:focus-within { border-color: #5b8cff; box-shadow: inset 0 1px 0 #ffffff0f, 0 24px 60px -24px #000000cc, 0 0 0 3px #5b8cff55; }
.pill.is-wrong { border-color: #ff5c5c; box-shadow: inset 0 1px 0 #ffffff0f, 0 0 0 3px #ff5c5c40; }
.pill-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 8px 0 20px; border: 0; background: transparent;
  color: var(--text); font: 500 16px/1 "Inter", sans-serif; letter-spacing: .02em;
}
.pill-input::placeholder { color: var(--mute); }
.pill-input:focus, .pill-input:focus-visible { outline: none; box-shadow: none; }
.pill-btn {
  flex: none; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: #0b0d10; font: 800 15px/1 "Inter", sans-serif; letter-spacing: -.01em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px #ffffff55; }
.pill-btn:focus-visible { outline: 2px solid #5b8cff; outline-offset: 3px; }

.msg { margin: 14px 0 0; font-size: 14.5px; line-height: 1.45; color: #ff8a8a; }
.fine { margin: 40px 0 0; font-size: 13px; letter-spacing: .02em; color: var(--mute); }

@media (max-width: 520px) {
  .gate { padding: 40px 16px 48px; }
  .eyebrow { margin-bottom: 24px; }
  .pulse { height: 56px; margin: 16px 0 20px; }
  .pill { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 28px; }
  .pill-input { height: 50px; padding: 0 16px; text-align: center; }
  .pill-btn { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .pill, .pill-btn { transition: none; } }
