html.password-gate-locked,
html.password-gate-locked body {
  min-height: 100%;
  overflow: hidden;
  background: #f7f3ee;
}

html.password-gate-locked body > * {
  visibility: hidden;
}

html.password-gate-locked body > .password-gate {
  visibility: visible;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 18%, rgba(238, 228, 217, 0.92), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(224, 211, 198, 0.66), transparent 32%),
    #f7f3ee;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.password-gate.is-unlocking {
  opacity: 0;
}

.password-gate-card {
  width: min(100%, 440px);
  padding: 48px 44px 44px;
  text-align: center;
  color: #2f2a26;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 42, 38, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(47, 42, 38, 0.13);
  backdrop-filter: blur(8px);
}

.password-gate-monogram {
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.password-gate-monogram img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.password-gate-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 400;
  line-height: 1.05;
}

.password-gate-copy {
  max-width: 330px;
  margin: 22px auto 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #5a534d;
}

.password-gate-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-align: left;
}

[dir="rtl"] .password-gate-label {
  text-align: right;
}

.password-gate-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(47, 42, 38, 0.22);
  border-radius: 12px;
  background: #fff;
  color: #2f2a26;
  font: inherit;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-gate-input:focus {
  outline: none;
  border-color: #2f2a26;
  box-shadow: 0 0 0 3px rgba(47, 42, 38, 0.08);
}

.password-gate-button {
  width: 100%;
  margin-top: 14px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: #2f2a26;
  color: #f7f3ee;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.password-gate-button:hover {
  background: #1f1a17;
  transform: translateY(-1px);
}

.password-gate-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.password-gate-error {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #9a3a3a;
}

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

  .password-gate-card {
    padding: 38px 24px 32px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .password-gate,
  .password-gate-button {
    transition: none;
  }
}
