.access-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: #07351f;
  background: #fff;
  isolation: isolate;
  transition: opacity .6s cubic-bezier(.4,0,.2,1), visibility .6s;
}

.access-gate::before,
.access-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.access-gate::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(216,247,227,.55), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(200,169,77,.14), transparent 44%);
}

.access-gate::after {
  background: linear-gradient(180deg, transparent 62%, rgba(15,91,54,.035));
}

.access-gate[data-state="open"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.access-gate-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, 88vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.access-gate-ring {
  position: absolute;
  border-radius: 50%;
  animation: access-gate-breathe 7s ease-in-out infinite;
}

.access-gate-ring--outer {
  inset: 0;
  border: 1px solid rgba(15,91,54,.10);
}

.access-gate-ring--middle {
  inset: 16%;
  border: 1px solid rgba(200,169,77,.22);
  animation-delay: -1.8s;
}

.access-gate-ring--inner {
  inset: 32%;
  border: 1px solid rgba(15,91,54,.16);
  animation-delay: -3.6s;
}

@keyframes access-gate-breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.035); opacity: .55; }
}

.access-gate-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(430px, 100%);
  text-align: center;
  animation: access-gate-rise .8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes access-gate-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.access-gate-logo {
  display: block;
  width: min(280px, 74%);
  height: auto;
  margin-bottom: 22px;
}

.access-gate-kicker {
  margin: 0;
  color: #0f5b36;
  font-family: var(--display, "League Spartan", sans-serif);
  font-size: clamp(10px, .92vw, 12px);
  font-weight: 800;
  letter-spacing: .3em;
  line-height: 1.4;
  text-transform: uppercase;
}

.access-gate-title {
  margin: 12px 0 0;
  color: #07351f;
  font-family: var(--display, "League Spartan", sans-serif);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}

.access-gate-note {
  max-width: 330px;
  margin: 10px 0 0;
  color: rgba(7,53,31,.62);
  font-size: 13.5px;
  line-height: 1.6;
}

.access-gate-form {
  display: grid;
  gap: 12px;
  width: min(320px, 100%);
  margin-top: 26px;
}

.access-gate-field {
  position: relative;
  display: flex;
  align-items: center;
}

.access-gate-input {
  width: 100%;
  padding: 14px 46px 14px 16px;
  color: #07351f;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .22em;
  background: #fff;
  border: 1px solid rgba(15,91,54,.2);
  border-radius: 2px;
  outline: none;
  transition: border-color .28s ease, box-shadow .28s ease;
}

.access-gate-input::placeholder {
  color: rgba(7,53,31,.3);
  letter-spacing: .16em;
}

.access-gate-input:focus {
  border-color: rgba(200,169,77,.75);
  box-shadow: 0 0 0 3px rgba(200,169,77,.14);
}

.access-gate-reveal {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(7,53,31,.42);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .24s ease, background .24s ease;
}

.access-gate-reveal:hover { color: #0f5b36; background: rgba(15,91,54,.06); }
.access-gate-reveal svg { width: 18px; height: 18px; }
.access-gate-reveal .access-gate-eye-off { display: none; }
.access-gate-reveal[aria-pressed="true"] .access-gate-eye-on { display: none; }
.access-gate-reveal[aria-pressed="true"] .access-gate-eye-off { display: block; }

.access-gate-submit {
  padding: 14px 20px;
  color: #fff;
  font-family: var(--display, "League Spartan", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  background: #0f5b36;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .28s ease, transform .28s ease, box-shadow .28s ease;
}

.access-gate-submit:hover {
  background: #0b4529;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,91,54,.18);
}

.access-gate-submit:active { transform: translateY(0); }

.access-gate-error {
  min-height: 18px;
  margin: 0;
  color: #b3402f;
  font-size: 12.5px;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .24s ease;
}

.access-gate[data-error="true"] .access-gate-error { opacity: 1; }
.access-gate[data-error="true"] .access-gate-input { border-color: rgba(179,64,47,.55); }
.access-gate[data-error="true"] .access-gate-field { animation: access-gate-shake .42s cubic-bezier(.36,.07,.19,.97); }

@keyframes access-gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.access-gate-seam {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #c8a94d;
  box-shadow: 0 0 18px rgba(200,169,77,.4);
  transform: translateX(-50%) scaleY(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .3s ease-out, opacity .3s ease-out;
}

.access-gate[data-state="unlocking"] .access-gate-seam {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

.access-gate[data-state="unlocking"] .access-gate-card {
  opacity: 0;
  transform: scale(.985);
  transition: opacity .34s ease, transform .34s ease;
}

body[data-gate="locked"] { overflow: hidden; }
html:has(body[data-gate="locked"]) { overflow: hidden; }

@media (max-width: 600px) {
  .access-gate-rings { width: 120vw; }
  .access-gate-logo { width: min(230px, 78%); }
  .access-gate-note { max-width: 290px; font-size: 13px; }
}
