*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

.gate-page {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: "Outfit", system-ui, sans-serif;
  color: #f4f6fa;
  background: #0c0e14;
}

.gate-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 50%, rgb(226 0 26 / 0.35), transparent 62%),
    radial-gradient(ellipse 60% 45% at 18% 78%, rgb(88 120 200 / 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 22%, rgb(180 90 120 / 0.18), transparent 50%),
    linear-gradient(155deg, #12151f 0%, #1a1220 38%, #0e1018 72%, #080a10 100%);
}

.gate-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.gate-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 20rem);
  max-width: 100%;
}

.gate-card {
  width: 100%;
  max-width: 100%;
  padding: 1rem 0.85rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(18 22 32 / 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 24px 80px rgb(0 0 0 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  overflow: hidden;
}

@media (prefers-reduced-transparency: reduce) {
  .gate-card {
    background: #161a24;
    backdrop-filter: none;
  }
}

.gate-heading {
  margin: 0 0 0.75rem;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 0.92);
}

.gate-form {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.gate-form input[type="password"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 10px;
  background: rgb(8 10 16 / 0.55);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.gate-form input::placeholder {
  color: rgb(255 255 255 / 0.45);
}

.gate-form input:focus {
  outline: 2px solid #e2001a;
  outline-offset: 0;
  border-color: rgb(226 0 26 / 0.5);
}

.gate-error {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #ff8a9a;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
