/* Password gate (public/js/ui/accessGate.js): every page load asks for the server-side access password.
   Sits above the boot splash (z-index 200); no cookie or storage keeps it open. */

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 50% 32%, #17251f 0%, #0b1010 56%, #060908 100%);
  color: #d8e3de;
  font-family: var(--font-cjk, 'Noto Sans SC', system-ui, sans-serif);
  opacity: 1;
  transition: opacity 220ms var(--ease-out, ease-out);
}

.access-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.access-gate__panel {
  position: relative;
  width: min(560px, 92vw);
  padding: 34px 36px 28px;
  border: 1px solid #2f3a35;
  background: rgba(16, 20, 18, .9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(78, 216, 175, .07);
  animation: access-gate-in 260ms var(--ease-out, ease-out) both;
}

@keyframes access-gate-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.access-gate__eyebrow {
  font-family: var(--font-mono, 'Bender', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .3em;
  color: #4ed8af;
  opacity: .85;
}

.access-gate__title {
  margin: 12px 0 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .16em;
  color: #f2f2f2;
}

.access-gate__hint {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .05em;
  color: #8a948f;
}

.access-gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-gate__input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #2f3a35;
  background: #0b0f0e;
  color: #f2f2f2;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .06em;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.access-gate__input::placeholder { color: #5d6863; }

.access-gate__input:focus {
  border-color: #4ed8af;
  box-shadow: 0 0 0 3px rgba(78, 216, 175, .14);
}

.access-gate__input:disabled { opacity: .6; }

.access-gate__submit {
  padding: 12px 16px;
  border: 1px solid #4ed8af;
  background: linear-gradient(180deg, #4ed8af, #2fbf98);
  color: #06110d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
  transition: filter 150ms ease, opacity 150ms ease;
}

.access-gate__submit:hover:not(:disabled) { filter: brightness(1.08); }
.access-gate__submit:disabled { opacity: .55; cursor: default; }

.access-gate__error {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: #ff5454;
}

@media (max-width: 560px) {
  .access-gate__panel { padding: 26px 22px 20px; }
  .access-gate__title { font-size: 24px; }
}
