@font-face {
  font-family: "Gate Sans";
  src: url("gate.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --ground: #0F3B33;
  --line: rgba(230, 238, 227, .38);
  --text: #E6EEE3;
  --accent: #E9CF55;
  --alert: #FFB4A6;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: "Gate Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gate {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.gate__form {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) .1s forwards;
}
.gate__input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font: 400 1.125rem/1 inherit;
  font-family: inherit;
  letter-spacing: .08em;
  transition: border-color .25s ease;
}
.gate__input::placeholder { color: rgba(230, 238, 227, .62); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.gate__input:focus { outline: none; border-bottom-color: var(--accent); }
.gate__input:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
.gate__btn {
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #0F3B33;
  font: 600 .8rem/1 inherit;
  font-family: inherit;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.gate__btn:hover { background: transparent; color: var(--accent); }
.gate__btn:active { transform: scale(.97); }
.gate__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.gate__btn[disabled] { opacity: .6; cursor: progress; }
.gate__msg {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: .85rem;
  color: var(--alert);
}
.gate__msg.is-note { color: rgba(230, 238, 227, .8); }
.gate__form.shake { animation: shake .4s ease; opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate__form { animation: none; opacity: 1; transform: none; }
  .gate__form.shake { animation: none; }
}
@media (max-width: 360px) {
  .gate__form { grid-template-columns: 1fr; row-gap: 16px; }
  .gate__btn { width: 100%; }
}
