.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f7f7f5;
  color: #171817;
}

.auth-gate[hidden] {
  display: none;
}

.auth-gate-panel {
  width: min(440px, 100%);
  padding: 44px 46px 40px;
  background: #fff;
  border: 1px solid #deded9;
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(22, 23, 22, 0.07);
}

.auth-gate-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border-radius: 14px;
  background: #1d1e1c;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.auth-gate-kicker {
  margin: 0 0 12px;
  color: #878883;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.auth-gate h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.auth-gate-copy {
  margin: 17px 0 30px;
  color: #666761;
  font-size: 14px;
  line-height: 1.8;
}

.auth-gate-copy.is-error {
  color: #8d342e;
}

.auth-gate-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: #20211f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.auth-gate-button:hover {
  background: #000;
}

.auth-gate-button:focus-visible {
  outline: 3px solid rgba(32, 33, 31, 0.2);
  outline-offset: 3px;
}

.auth-gate-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-gate small {
  display: block;
  margin-top: 18px;
  color: #999a95;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 560px) {
  .auth-gate {
    padding: 18px;
  }

  .auth-gate-panel {
    padding: 34px 28px 30px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-gate-panel {
    animation: auth-gate-enter 260ms ease-out both;
  }
}

@keyframes auth-gate-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
