.shoals-auth-booting body > *:not(#shoalsAccessGate),
body:not(.shoals-authenticated) > *:not(#shoalsAccessGate) {
  display: none !important;
}

.shoals-access-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(79, 209, 197, 0.18), transparent 30%),
    linear-gradient(135deg, #071120 0%, #0b1a30 50%, #101827 100%);
  color: #f8fafc;
  font-family: Inter, Arial, sans-serif;
}

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

.shoals-access-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 18px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: center;
}

.shoals-access-brand,
.shoals-access-panel {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(16, 24, 39, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.shoals-access-brand {
  min-height: 560px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shoals-access-brand img {
  width: min(190px, 70%);
  margin-bottom: 28px;
}

.shoals-access-eyebrow {
  color: #4fd1c5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shoals-access-brand h1 {
  margin: 10px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

.shoals-access-brand p {
  color: #a8b4c5;
  line-height: 1.55;
}

.shoals-access-panel {
  min-height: 560px;
  padding: 22px;
}

.shoals-access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.shoals-access-tabs button,
.shoals-primary,
.shoals-link {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.shoals-access-tabs button {
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
}

.shoals-access-tabs button.active {
  background: #f4c76b;
  color: #101820;
}

.shoals-access-screen {
  display: none;
}

.shoals-access-screen.active {
  display: block;
}

.shoals-access-screen h2 {
  color: #38bdf8;
  margin: 0 0 18px;
}

.shoals-access-screen input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 12px 13px;
  margin-bottom: 12px;
  background: #fff;
  color: #111827;
  font-size: 16px;
}

.shoals-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0;
  color: #a8b4c5;
  line-height: 1.4;
}

.shoals-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.shoals-primary {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, #0d8c91, #4fd1c5);
  color: #071120;
}

.shoals-primary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.shoals-link {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: #f4c76b;
}

.shoals-disclaimer-copy {
  max-height: 380px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  background: rgba(2,6,23,0.32);
  color: #dbeafe;
}

.shoals-turnstile {
  min-height: 74px;
  margin-top: 12px;
}

.shoals-access-status {
  min-height: 22px;
  color: #f4c76b;
  font-weight: 700;
}

.shoals-access-status.error {
  color: #f87171;
}

.shoals-access-status.good {
  color: #22c55e;
}

@media (max-width: 820px) {
  .shoals-access-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shoals-access-brand,
  .shoals-access-panel {
    min-height: auto;
  }
}
