/* ==========================================================================
   Password gate
   Client-side only — NOT real security, just a soft deterrent.
   ========================================================================== */

.password-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sage-light) 55%, var(--sage) 100%);
}

html.gate-locked .password-gate {
  display: flex;
}

html.gate-locked body > *:not(.password-gate) {
  display: none !important;
}

.gate-card {
  width: 100%;
  max-width: 400px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 48px 40px;
  box-shadow: 0 30px 70px rgba(28, 36, 23, 0.18);
  text-align: center;
}

.gate-card .wordmark {
  justify-content: center;
  margin-bottom: 28px;
}

.gate-card .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.gate-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--forest-deep);
}

.gate-field {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--charcoal);
  margin-bottom: 16px;
  transition: border-color 0.3s var(--ease);
}

.gate-field:focus {
  outline: none;
  border-color: var(--sage-deep);
}

.gate-submit {
  width: 100%;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest);
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.gate-submit:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

.gate-error {
  margin-top: 16px;
  font-size: 13px;
  color: #a3423a;
}

.gate-back {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--charcoal-soft);
  border-bottom: 1px solid var(--charcoal-soft);
}
