/*
 * gate.css - Nvogue-branded password screen.
 * Author: Trivikram Shenoy, RedX Creatives (https://redxcreatives.com/)
 * Colours and fonts follow nvogue.in: deep navy, bright blue, Playfair Display + Inter.
 */
.gate {
  --nv-bg: #061f37;
  --nv-card: #0b2641;
  --nv-border: #204060;
  --nv-primary: #1a8cff;
  --nv-accent: #3db8f5;
  --nv-muted: #9cb2c9;
  --nv-fg: #f9fafb;

  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--nv-bg);
  color: var(--nv-fg);
  font-family: "Inter", system-ui, sans-serif;
  overflow: hidden;
  transition: opacity .6s ease, visibility 0s .6s;
}
.gate[hidden] { display: none; }
.gate.is-leaving { opacity: 0; visibility: hidden; }

/* The page underneath stays laid out (so the scatter maths works) but unseen. */
.is-locked .scene, .is-locked .credit { visibility: hidden; }

.gate__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(26, 140, 255, .22), transparent 70%),
    radial-gradient(35% 30% at 78% 72%, rgba(61, 184, 245, .16), transparent 70%);
  animation: gate-glow 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes gate-glow { to { transform: translate(3%, -3%) scale(1.05); } }

.gate__card {
  position: relative;
  width: min(100%, 420px);
  padding: 40px 36px 32px;
  border: 1px solid var(--nv-border);
  border-radius: 16px;
  background: rgba(11, 38, 65, .85);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  text-align: center;
}

.gate__brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -.02em;
  line-height: 1;
}
.gate__tagline {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--nv-accent);
}
.gate__title {
  margin: 28px 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.gate__label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--nv-muted);
}

.gate__row { display: flex; gap: 8px; }
.gate__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--nv-border);
  border-radius: 8px;
  background: var(--nv-bg);
  color: var(--nv-fg);
  font: inherit;
  font-size: 15px;
}
.gate__input:focus { outline: 2px solid var(--nv-primary); outline-offset: 1px; border-color: transparent; }
.gate__btn {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--nv-primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.gate__btn:hover { background: var(--nv-accent); }
.gate__btn:focus-visible { outline: 2px solid var(--nv-fg); outline-offset: 2px; }

.gate__error {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 13px;
  color: #ff8a8a;
}

.shake { animation: gate-shake .4s; }
@keyframes gate-shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .gate__glow, .shake { animation: none; }
}
