/* =========================================================
   HEENESIS — acceso con contraseña
   ========================================================= */

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}
.gate[hidden] { display: none; }

.gate__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(2, 6, 12, .35), rgba(2, 4, 10, .75));
  opacity: 0;
  transition: opacity .6s var(--ease-soft);
}

.gate__panel {
  position: relative;
  width: min(360px, 100%);
  padding: 40px 28px 30px;
  border-radius: 22px;
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(10, 22, 34, .62), rgba(4, 10, 18, .7));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 60px rgba(var(--energy-rgb), .08), inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .6s var(--ease-soft), transform .8s var(--ease-soft);
}

.gate.is-open .gate__backdrop { opacity: 1; }
.gate.is-open .gate__panel    { opacity: 1; transform: none; }

.gate__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: color .3s;
}
.gate__close:hover, .gate__close:focus-visible { color: var(--ink); outline: none; }

.gate__eyebrow {
  margin: 0 0 8px;
  font-size: .62rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--energy);
  opacity: .8;
}

.gate__title {
  margin: 0 0 28px;
  font-weight: 200;
  font-size: 1.35rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gate__input {
  width: 100%;
  height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(var(--energy-rgb), .3);
  background: transparent;
  color: var(--pearl);
  font: inherit;
  font-size: 1.4rem;
  letter-spacing: .6em;
  text-indent: .6em;
  text-align: center;
  outline: none;
  transition: border-color .4s, box-shadow .4s;
}
.gate__input::placeholder { color: var(--ink-faint); letter-spacing: .3em; }
.gate__input:focus {
  border-color: rgba(var(--energy-rgb), .75);
  box-shadow: 0 10px 22px -18px rgba(var(--energy-rgb), .9);
}

.gate__msg {
  min-height: 1.4em;
  margin: 14px 0 18px;
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(255, 214, 214, .75);
}

.gate__submit {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid rgba(var(--energy-rgb), .35);
  background: rgba(var(--energy-rgb), .06);
  color: var(--ink);
  font-size: .72rem;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  transition: background .4s, box-shadow .4s, border-color .4s;
}
.gate__submit:hover, .gate__submit:focus-visible {
  background: rgba(var(--energy-rgb), .13);
  border-color: rgba(var(--energy-rgb), .7);
  box-shadow: 0 0 26px rgba(var(--energy-rgb), .2);
  outline: none;
}

.gate__panel.is-wrong { animation: gate-shake .55s var(--ease-soft); }
@keyframes gate-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
