/* HB9Experts.ch — simple pre-launch access gate ("Signalklar" CI).
 * Client-side only: a soft barrier while the site isn't publicly announced,
 * not a real access control (see layouts/_default/baseof.html). */

.site-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 24px;
}

html.gate-enabled .site-gate { display: flex; }
html.gate-enabled.gate-unlocked .site-gate { display: none; }
html.gate-enabled:not(.gate-unlocked) { overflow: hidden; }

.site-gate-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-gate-logo { width: 170px; height: auto; }

.site-gate-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--welle);
}

.site-gate-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(241, 244, 248, .06);
  color: var(--frost);
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: center;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-gate-card input[type="password"]::placeholder {
  color: var(--graphit);
  text-transform: none;
  letter-spacing: normal;
}

.site-gate-card input[type="password"]:focus {
  outline: 2px solid var(--welle);
  outline-offset: 2px;
}

.site-gate-card button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  background: var(--signal);
  color: var(--white);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.site-gate-card button:hover { background: var(--welle); color: var(--ink); }

.site-gate-error {
  margin: 0;
  font-size: 13px;
  color: var(--welle);
}

.site-gate-error:not([hidden]) { animation: gate-shake .3s; }

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
