/* ==========================================================================
   Password gate
   --------------------------------------------------------------------------
   Reuses the Webflow utility_* classes from protected.html so the gate is
   visually identical to the real Webflow password page.

   NOTE: this is a client-side gate. It hides the page until the password is
   entered, but the page content is still present in the downloaded HTML and
   can be read by anyone who views source or disables JavaScript. It is a
   presentation gate, not access control.
   ========================================================================== */

/* Hide the page until unlocked. The .pw-locked class is set by a tiny inline
   script in <head> so this applies before first paint — no flash of content. */
html.pw-locked body > *:not(.pw-gate) { display: none !important; }
html.pw-locked body { overflow: hidden; }

.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: auto;
  background: #fff;
}

/* The inner markup mirrors protected.html, so it inherits the real styling.
   These few rules only guarantee centring inside the fixed overlay. */
.pw-gate .utility_component {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
}

/* Error message is hidden until a wrong password is submitted. */
.pw-gate .form_message-error-wrapper { display: none; }
.pw-gate .form_message-error-wrapper[data-visible] { display: block; }
