/* The pre-launch gate. Tokens are the design system's own, restated here
   because this template is on layout/password.html and does not inherit the
   storefront's cascade order. */

.gate {
  --gate-ink: #3f3a37;
  --gate-sage-deep: #5F7268;
  --gate-sage-light: #d5e0da;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) clamp(20px, 5vw, 64px);
  background: var(--gate-ink);
  isolation: isolate;
}

/* §14.2 — the platform wraps this template's sections in
   <div id="shopline-section-…" class="section"> too. The storefront adapter
   sheet is deliberately not loaded here, so the reset is repeated locally or
   the wrapper's padding reappears as a dead band above the gate. */
[id^="shopline-section-"].section { padding: 0; margin: 0; }

.gate__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.gate__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gate__media::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gate-ink);
  /* The setting is a 0-100 range, so it arrives as `55`, not `.55`. Used
     directly it clamps to 1 and the photograph disappears behind flat ink. */
  opacity: calc(var(--gate-overlay, 55) / 100);
}

.gate__panel {
  width: min(100%, 460px);
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  background: #fff;
  padding: clamp(28px, 5vw, 48px);
  color: var(--gate-ink);
}

.gate__logo { display: block; color: var(--gate-ink); width: 180px; }
.gate__logo svg { width: 100%; height: auto; display: block; }

.gate__heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.gate__body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #5b5a56;
  max-width: 40ch;
}

.gate__form { display: grid; gap: 14px; width: 100%; }

.gate__field { display: grid; gap: 6px; text-align: left; }
.gate__field > span {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b5a56;
}
.gate__field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: #fff;
  color: var(--gate-ink);
  border: 1px solid rgba(63, 58, 55, .15);
  border-radius: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}
.gate__field input:focus-visible {
  outline: 2px solid var(--gate-ink);
  outline-offset: 1px;
  border-color: var(--gate-ink);
}

.gate .btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--gate-sage-deep);
  border-radius: 0;
  background: var(--gate-sage-deep);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background .28s cubic-bezier(.22,.61,.36,1), border-color .28s cubic-bezier(.22,.61,.36,1);
}
.gate .btn:hover { background: var(--gate-ink); border-color: var(--gate-ink); }
.gate .btn:focus-visible { outline: 2px solid var(--gate-ink); outline-offset: 3px; }

.gate__error {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #a3341f;
  text-align: left;
}

/* The element is always in the DOM so it can be unhidden from script; without
   this its own `display: grid`/`block` would beat the hidden attribute. */
.gate__error[hidden] { display: none !important; }

.gate__note {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #5b5a56;
  max-width: 34ch;
}
