/* Reuse existing splash container; [hidden] will override display */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f5f2;
  backdrop-filter: blur(24px) saturate(180%);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s ease;
height: 100vh;
}

/* Your existing splash-inner already sets blue card, radius, padding */
.splash-inner {
  text-align: center;
  animation: splashFadeIn 1.5s ease forwards;
  background: #2253f4;
  border-radius: 32px;
  padding: 64px;
z-index: 1;
}

/* Gate variant: layout rows neatly and center content */
.splash-inner.gate h1 {
  font-size: 48px;
  margin: 0 0 64px 0 !important;
  color: #f3f5f2;
  font-family: var(--font-title);
  font-weight: 300;
Letter-spacing: -0.02rem;
}
.splash-inner.gate p.muted { color: rgba(255,255,255,0.75); margin: 0 0 16px 0; }

.splash-logo { width: 120px; margin: 0 auto 12px; opacity: 0.9; }

/* Input row */
.gate-input {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}
.gate-input input#gateUrl {
  width: min(640px, 92vw);
height: 48px;
padding: 0 14px;
background: rgba(255,255,255,0.08);
color: #f3f5f2 !important;
outline: none;
font-size: 18px;
appearance: none;
border-top: none;
border-bottom: 1px solid rgba(243, 245, 242, 0.5);
border-left: none;
border-right: none;
}
.gate-input input#gateUrl::placeholder { color: rgba(243, 245, 242, 0.5); }

/* Buttons on the blue card: invert brand to white-on-blue */
.splash-inner.gate .btn.brand {
  height: 48px;
  padding: 0 18px;
  border-radius: 99px;
  background: #ffffff;
  color: #2253f4;
  border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
font-size: 14px;
cursor: pointer;
}
.splash-inner.gate .btn.brand:disabled { opacity: 0.6;}
.splash-inner.gate .btn.ghost {
  color: #f3f5f2;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 8px 14px;
height: 48px;
font-size: 16px;
width: 30%;
margin-top: 24px;
}

/* Secondary rows */
.splash-inner.gate .tip { color: rgba(255,255,255,0.6); margin-top: 8px; display: none;}
.gate-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* Blur/disable admin shell while gate is visible */
#adminShell[aria-hidden="true"] {
  filter: blur(2px) saturate(0.9);
  pointer-events: none;
  user-select: none;
}

/* --- Gate-themed Admin Login Modal --- */

/* Put the login modal above the gate overlay so clicking "Sign in" on the gate
   can reveal the modal cleanly. Keep #publicGate slightly below it. */
#publicGate { z-index: 10000; }
#adminLoginModal { position: fixed; inset: 0; z-index: 10010; }

/* Modal scrim gets a subtle blur like the splash */
#adminLoginModal .scrim {
  background: rgba(11,10,19,0.45);
  backdrop-filter: blur(6px) saturate(120%);
}

/* Card matches the gate's blue panel */
#adminLoginModal .card {
  background: #2253f4;
  color: #f3f5f2;
  border-radius: 32px;
  width: min(560px, 92vw);
  padding: 32px 28px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(17,23,41,.35);
  animation: splashFadeIn 0.25s ease forwards; /* reuse splash keyframes */
}

#adminLoginModal .card { transition: border-color .2s ease; }
#adminLoginModal .card.login-error { border: 2px solid rgb(255, 55, 95); }

/* Title style to match gate */
#adminLoginModal header {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f3f5f2;
}

/* Field + input to mirror gate input */
#adminLoginModal .field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.85);
}
#adminLoginModal input[type="password"] {
  width: 100%;
  border-radius: 0px;
background: rgba(255,255,255,0.08);
  color: #f3f5f2;
font-size: 18px;
appearance: none;
border-top: none;
border-bottom: 1px solid rgba(243, 245, 242, 0.5);
border-left: none;
border-right: none;
outline: none;
height: 48px;
padding: 0 14px;
}

/* Footer buttons styled like the gate */
#adminLoginModal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
#adminLoginModal .btn.brand {
  height: 48px;
  padding: 0 18px;
  border-radius: 99px;
  background: #ffffff;
  color: #2253f4;
  border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  font-size: 14px;
  cursor: pointer;
}
#adminLoginModal .btn.ghost,
#adminLoginModal .btn:not(.brand) {
  color: #f3f5f2;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  border-radius: 99px;
  padding: 10px 16px;
height: 48px;
}
#publicGate.is-hiding { opacity: 0; pointer-events: none; }

#publicGate[hidden], .splash[hidden] { display: none !important; }