/* gate.css — branded access overlay */
:root { --as-blue: #021c40; }

html.as-locked { overflow: hidden; }

#as-gate {
  position: fixed;
  inset: 0;
  display: none;                 /* JS will show it if locked */
  place-items: center;
  background: rgba(2, 28, 64, 0.92);
  z-index: 999999;
}
#as-gate.show { display: grid; }

#as-gate .card {
  width: min(92vw, 440px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 22px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
}

#as-gate h2 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 20px;
  color: var(--as-blue);
}
#as-gate p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}

#as-gate form {
  display: flex;
  gap: 10px;
}

#as-gate input[type="password"] {
  flex: 1 1 auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 14px/1.2 Inter, system-ui;
}

#as-gate button {
  background: var(--as-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: 700 14px/1 Inter, system-ui;
  cursor: pointer;
}

#as-gate .msg {
  margin-top: 10px;
  color: #dc2626;
  font: 500 13px/1.2 Inter, system-ui;
  display: none;
}

/* tiny shake on wrong password */
@keyframes as-shake {
  10%,90% { transform: translateX(-1px); }
  20%,80% { transform: translateX(2px); }
  30%,50%,70% { transform: translateX(-4px); }
  40%,60% { transform: translateX(4px); }
}
#as-gate form.shake { animation: as-shake .42s ease; }