html.site-gate-active,
html.site-gate-active body {
  overflow: hidden;
  height: 100%;
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  color-scheme: light;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(245, 245, 247, 0.98)),
    #f5f5f7;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-gate__panel {
  width: min(100%, 360px);
  padding: 40px 32px 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  text-align: center;
  animation: site-gate-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-gate__logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 22px;
}

.site-gate__subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(29, 29, 31, 0.62);
}

.site-gate__form {
  display: grid;
  gap: 12px;
}

.site-gate__field {
  position: relative;
}

.site-gate__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-align: center;
  color: #1d1d1f;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-gate__input::placeholder {
  letter-spacing: normal;
  color: rgba(29, 29, 31, 0.35);
}

.site-gate__input:focus {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-gate__button {
  height: 50px;
  border: none;
  border-radius: 14px;
  background: #0071e3;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}

.site-gate__button:hover {
  background: #0077ed;
}

.site-gate__button:active {
  transform: scale(0.985);
}

.site-gate__button:disabled,
.site-gate__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-gate__message {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #ff3b30;
}

.site-gate__message--locked {
  color: rgba(29, 29, 31, 0.72);
}

.site-gate__panel.is-shake {
  animation: site-gate-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes site-gate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes site-gate-shake {
  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }

  40%,
  60% {
    transform: translateX(4px);
  }
}

