/* Password gate — same brand tokens as the site (see src/styles/tokens.css) */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(90% 60% at 80% 0%, rgba(0, 128, 255, 0.25), transparent 60%), linear-gradient(180deg, #06182f 0%, #00274e 60%, #1a4677 100%);
  background-attachment: fixed;
  color: #00274e;
  font-family: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gate {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.25rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem 1rem;
}

.gate__card {
  width: 100%;
  max-width: 440px;
  padding: clamp(1.5rem, 1rem + 3vw, 2.5rem);
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 12, 30, 0.45);
}

.gate__logo {
  display: block;
  width: auto;
  height: 30px;
}

.gate__eyebrow {
  display: inline-block;
  margin: 1.75rem 0 0.75rem;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: #e3f0ff;
  color: #0061c2;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.gate__title {
  margin: 0;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gate__title span {
  display: block;
  color: #0080ff;
}

.gate__text {
  margin: 1rem 0 0;
  color: #546681;
  line-height: 1.55;
}

.gate__form {
  margin-top: 1.5rem;
}

.gate__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.gate__row {
  display: flex;
  gap: 0.5rem;
}

.gate__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 1rem;
  border: 2px solid rgba(0, 39, 78, 0.2);
  border-radius: 999px;
  background: #f7f7f7;
  color: #00274e;
  font: inherit;
  font-size: 1rem;
}

.gate__input:focus-visible {
  outline: 3px solid #0080ff;
  outline-offset: 2px;
  border-color: #0080ff;
}

.gate__input[aria-invalid='true'] {
  border-color: #c2334a;
}

.gate__button {
  min-height: 48px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #0070e0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gate__button:hover {
  background: #0061c2;
}

.gate__button:focus-visible {
  outline: 3px solid #0080ff;
  outline-offset: 3px;
}

.gate__button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.gate__error {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  color: #b3263c;
  font-size: 0.875rem;
  font-weight: 700;
}

.gate__note {
  margin: 0.5rem 0 0;
  color: #6d7d93;
  font-size: 0.75rem;
}

.gate__footer {
  display: flex;
  gap: 0.6rem;
  color: #b6bec9;
  font-size: 0.8rem;
}

.gate__footer a {
  color: #b6bec9;
}

.gate__footer a:hover,
.gate__footer a:focus-visible {
  color: #fff;
}

@media (max-width: 400px) {
  .gate__row {
    flex-direction: column;
  }
}
