/* gate.css — passcode screen only. Deliberately self-contained and minimal. */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #1A1D1A;
  color: #EFE9DE;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.gate { width: 100%; max-width: 26rem; }

.gate__form {
  border: 1px solid #383D36;
  padding: clamp(1.75rem, 6vw, 2.75rem);
  background: #21251F;
}

.gate__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A9AFA4;
  margin-bottom: 1.1rem;
}

.gate__field {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #575D54;
  border-radius: 0;
  color: #EFE9DE;
  font-family: inherit;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.gate__field:focus { outline: none; border-bottom-color: #DB9068; }
.gate__field[aria-invalid="true"] { border-bottom-color: #DB9068; }

.gate__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 1.75rem;
  padding: 0.85rem 1.25rem;
  background: #EFE9DE;
  color: #1A1D1A;
  border: 1px solid #EFE9DE;
  border-radius: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.gate__submit:hover { background: #DB9068; border-color: #DB9068; }

.gate__field:focus-visible,
.gate__submit:focus-visible { outline: 2px solid #DB9068; outline-offset: 3px; }

.gate__message {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #DB9068;
}
.gate__message[hidden] { display: none; }

@keyframes gate-refused {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.gate__form.is-refused { animation: gate-refused 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  .gate__form.is-refused { animation: none; }
  * { transition-duration: 0.001ms !important; }
}
