/* =========================================================================
   gate.css — Password gate overlay styles
   Delete this file + the gate div in index.html to remove the gate.
   ========================================================================= */

body.is-gated {
  overflow: hidden;
  /* Prevent scrolling when gate is up */
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(8, 27, 58, 0.92), rgba(8, 27, 58, 0.96)),
    radial-gradient(ellipse at top, #1a3a6e 0%, #081b3a 60%);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-gate[hidden] { display: none !important; }

.site-gate__card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  color: #081b3a;
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.site-gate__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #081b3a;
}
.site-gate__brand .logo-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #081b3a;
  position: relative;
  flex-shrink: 0;
}
.site-gate__brand .logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: #fd69cf;
  transform: rotate(45deg);
}

.site-gate__title {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  color: #081b3a;
  letter-spacing: -0.01em;
}
.site-gate__lead {
  color: #4a5a7a;
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
}

.site-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}
.site-gate__form label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5a7a;
}
.site-gate__form input {
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(8, 27, 58, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #081b3a;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-gate__form input:focus {
  outline: none;
  border-color: #025ffb;
  box-shadow: 0 0 0 3px rgba(2, 95, 251, 0.18);
}
.site-gate__form button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1.2rem;
  border: 2px solid #081b3a;
  border-radius: 8px;
  background: #081b3a;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  margin-top: 0.4rem;
}
.site-gate__form button:hover {
  background: transparent;
  color: #081b3a;
  transform: translateY(-1px);
}

.site-gate__hint {
  font-size: 0.82rem;
  color: #4a5a7a;
  margin: 0.8rem 0 0;
  font-style: italic;
}
.site-gate__hint[hidden] { display: none; }

.site-gate__error {
  font-size: 0.9rem;
  color: #c01a3a;
  background: rgba(192, 26, 58, 0.08);
  border: 1px solid rgba(192, 26, 58, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0.2rem 0 0;
}
.site-gate__error[hidden] { display: none; }

.site-gate__foot {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
