body.auth-pending {
  overflow: hidden;
}

body.auth-pending > header,
body.auth-pending > main,
body.auth-pending > footer,
body.auth-pending > dialog {
  visibility: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #080a09;
}

.access-gate[hidden] {
  display: none;
}

.access-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(6,12,8,.96), rgba(6,9,7,.78)),
    url("cover.webp") center/cover no-repeat;
}

.access-backdrop::before,
.access-backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.access-backdrop::before {
  width: 480px;
  height: 480px;
  left: -170px;
  top: -180px;
  background: rgba(23,163,74,.2);
}

.access-backdrop::after {
  width: 380px;
  height: 380px;
  right: -100px;
  bottom: -150px;
  background: rgba(99,219,126,.12);
}

.access-card {
  position: relative;
  width: min(480px, 100%);
  padding: 44px;
  border: 1px solid rgba(99,219,126,.25);
  border-radius: 18px;
  background: rgba(13,17,14,.93);
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 50px rgba(23,163,74,.1);
  backdrop-filter: blur(22px);
}

.access-logo {
  width: 160px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 28px;
}

.access-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #b9c0ba;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.access-kicker span {
  width: 26px;
  height: 2px;
  background: #17a34a;
}

.access-card h1 {
  font-size: clamp(2.7rem, 8vw, 4.2rem);
  line-height: .98;
}

.access-card h1 em {
  color: #63db7e;
  font-style: normal;
}

.access-intro {
  margin: 22px 0 28px;
  color: #a9b1aa;
}

.access-card label {
  display: block;
  margin: 16px 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-card label:first-of-type {
  margin-top: 0;
}

.email-field,
.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid #354038;
  border-radius: 9px;
  background: #090c0a;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.email-field:focus-within,
.password-field:focus-within {
  border-color: #35bd61;
  box-shadow: 0 0 0 3px rgba(23,163,74,.15);
}

.email-field input,
.password-field input {
  min-width: 0;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 600 1rem "DM Sans", sans-serif;
  letter-spacing: .08em;
}

.email-field input::placeholder,
.password-field input::placeholder {
  color: #6f7871;
  letter-spacing: 0;
}

.password-field button {
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: #8f9991;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.password-field button:hover {
  color: #63db7e;
}

.access-error {
  min-height: 24px;
  margin: 8px 0 2px;
  color: #ff7f7f;
  font-size: .84rem;
}

.access-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 20px;
  border: 0;
  border-radius: 9px;
  background: #17a34a;
  color: #fff;
  cursor: pointer;
  font: 700 1rem "DM Sans", sans-serif;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.access-submit:hover {
  transform: translateY(-2px);
  background: #22b957;
  box-shadow: 0 12px 28px rgba(23,163,74,.22);
}

.access-submit:disabled {
  cursor: wait;
  opacity: .75;
  transform: none;
}

.access-note {
  margin: 22px 0 0;
  color: #697169;
  font-size: .78rem;
  text-align: center;
}

.access-gate.is-unlocking {
  animation: gate-out .45s ease forwards;
}

.access-card.shake {
  animation: access-shake .35s ease;
}

@keyframes gate-out {
  to { opacity: 0; transform: scale(1.015); }
}

@keyframes access-shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

@media (max-width: 560px) {
  .access-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .access-gate.is-unlocking,
  .access-card.shake { animation: none; }
}
