html.auth-pending body {
  visibility: hidden;
}

html.auth-locked body {
  overflow: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(246, 244, 238, 0.82), rgba(246, 244, 238, 0.94)),
    linear-gradient(90deg, rgba(49, 66, 80, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 66, 80, 0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  backdrop-filter: blur(14px);
}

.access-gate__panel {
  width: min(440px, 100%);
  padding: 30px 28px 28px;
  border: 1px solid rgba(199, 176, 124, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 238, 0.88)),
    linear-gradient(90deg, rgba(199, 176, 124, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(199, 176, 124, 0.05) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 28px 64px rgba(49, 66, 80, 0.12);
  color: #2f3433;
}

.access-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b4a45;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.access-gate__eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7b07c;
  content: "";
}

.access-gate__title {
  margin: 18px 0 0;
  color: #242a2b;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1.26;
  letter-spacing: 0.02em;
}

.access-gate__lead {
  margin: 14px 0 0;
  color: rgba(49, 66, 80, 0.76);
  font-size: 0.96rem;
  line-height: 1.84;
}

.access-gate__form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.access-gate__label {
  display: grid;
  gap: 8px;
  color: #314250;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.access-gate__input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(49, 66, 80, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #242a2b;
  font: inherit;
}

.access-gate__input:focus {
  outline: 2px solid rgba(199, 176, 124, 0.56);
  outline-offset: 2px;
}

.access-gate__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(49, 66, 80, 0.16);
  background: #314250;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.access-gate__button:hover {
  background: #2b3945;
}

.access-gate__button:focus-visible {
  outline: 2px solid rgba(199, 176, 124, 0.72);
  outline-offset: 3px;
}

.access-gate__error {
  min-height: 1.4em;
  margin: 0;
  color: #8b3f37;
  font-size: 0.82rem;
  line-height: 1.6;
}

.access-gate__hint {
  margin: 4px 0 0;
  color: rgba(49, 66, 80, 0.6);
  font-size: 0.8rem;
  line-height: 1.7;
}

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

  .access-gate__panel {
    padding: 24px 20px 22px;
  }
}
