/* 35 RNDMD BLUE access gate: BIOS identity, consent, and startup motion. */
.auth-gate {
  --auth-blue: #123dff;
  --auth-blue-deep: #06199f;
  --auth-blue-dark: #031160;
  --auth-ice: #edf1ff;
  position: absolute;
  z-index: 120;
  inset: 0;
  overflow: auto;
  color: var(--auth-ice);
  background: var(--auth-blue-dark);
  text-shadow: .5px 0 rgba(255,65,65,.26), -.5px 0 rgba(95,205,255,.32), 0 0 4px rgba(222,231,255,.28);
  transform-origin: center;
  animation: auth-crt-on 720ms cubic-bezier(.23,1,.32,1) both;
}

.auth-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(to bottom,rgba(255,255,255,.22) 0,rgba(255,255,255,.22) 1px,transparent 1px,transparent 4px);
  mix-blend-mode: soft-light;
}

.auth-gate.is-authorized { animation: auth-crt-exit 480ms cubic-bezier(.77,0,.175,1) forwards; }

.auth-bios-grid {
  min-height: 100%;
  display: grid;
  grid-template: clamp(27px,2.1vw,36px) minmax(0,1fr) clamp(22px,1.7vw,28px) / minmax(0,1.03fr) minmax(280px,.97fr);
  gap: 1px;
  background: rgba(235,241,255,.34);
}

.auth-bios-header,.auth-bios-footer {
  grid-column: 1 / -1;
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(11px,1.5vw,24px);
  color: var(--auth-blue-dark);
  background: var(--auth-ice);
  text-shadow: none;
  font-weight: 700;
  letter-spacing: .08em;
}

.auth-bios-footer { font-size: .72em; }

.auth-identity,.auth-form {
  min-width: 0;
  min-height: 0;
  background: var(--auth-blue-deep);
}

.auth-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(14px,2vw,28px);
  text-align: center;
}

.auth-globe-stage {
  position: relative;
  width: clamp(86px,10vw,145px);
  aspect-ratio: 1;
  margin-bottom: clamp(8px,1vw,14px);
  overflow: hidden;
  border: 1px solid rgba(237,241,255,.42);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(237,241,255,.035), 0 0 0 1px rgba(2,12,85,.65);
}

.auth-globe {
  position: absolute;
  inset: 8%;
  border: 2px solid var(--auth-ice);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(237,241,255,.12), 0 0 6px rgba(237,241,255,.12);
  animation: auth-globe-spin 9s linear infinite;
}

.auth-globe::before,.auth-globe::after,.auth-globe-latitude,.auth-globe-longitude {
  content: "";
  position: absolute;
  border: 1px solid rgba(237,241,255,.84);
  border-radius: 50%;
}

.auth-globe::before { inset: 5% 32%; }
.auth-globe::after { inset: 32% 5%; }
.auth-globe-latitude.latitude-a { inset: 17% 5%; }
.auth-globe-latitude.latitude-b { inset: 40% 2%; }
.auth-globe-longitude.longitude-a { inset: 4% 20%; transform: rotate(23deg); }
.auth-globe-longitude.longitude-b { inset: 4% 38%; transform: rotate(-28deg); }
.auth-globe i { position:absolute; inset:43%; border:1px solid var(--auth-ice); border-radius:50%; background:var(--auth-blue-deep); }

.auth-globe-scan {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 8%;
  height: 1px;
  background: var(--auth-ice);
  box-shadow: 0 0 8px rgba(237,241,255,.72);
  animation: auth-globe-scan 2.8s cubic-bezier(.77,0,.175,1) infinite;
}

.auth-kicker { margin:0 0 7px; font-weight:700; letter-spacing:.18em; }
.auth-identity h1 { margin:0; font:900 clamp(32px,4vw,58px)/.88 Arial,sans-serif; letter-spacing:-.055em; }
.auth-intro { max-width:34em; margin:clamp(7px,.8vw,12px) 0 0; line-height:1.35; }

.auth-boot-log {
  width:min(100%,390px);
  margin:clamp(9px,1vw,14px) 0 0;
  padding:0;
  list-style:none;
  text-align:left;
}

.auth-boot-log li {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:2px 0;
  border-bottom:1px solid rgba(237,241,255,.22);
  opacity:0;
  animation:auth-boot-line 280ms ease-out calc(520ms + var(--boot-order) * 110ms) forwards;
}
.auth-boot-log span { font-weight:700; }

.auth-form {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(6px,.7vw,10px);
  padding:clamp(13px,1.7vw,26px);
  background:#0a2bd2;
}

.auth-form-heading { display:flex; align-items:end; justify-content:space-between; gap:15px; padding-bottom:7px; border-bottom:2px solid var(--auth-ice); }
.auth-form-heading span { letter-spacing:.12em; }
.auth-form-heading strong { font-size:1.35em; }

.auth-field { display:grid; gap:5px; }
.auth-field label,.auth-consent legend { font-weight:700; letter-spacing:.08em; }
.auth-field input {
  width:100%;
  min-height:clamp(29px,2.2vw,36px);
  padding:7px 9px;
  border:1px solid rgba(237,241,255,.86);
  border-radius:0;
  color:var(--auth-ice);
  background:rgba(2,12,91,.34);
  box-shadow:inset 2px 2px 0 rgba(2,9,63,.28),inset -1px -1px 0 rgba(237,241,255,.2);
  caret-color:var(--auth-ice);
}
.auth-field input:focus-visible { outline:2px solid var(--auth-ice); outline-offset:2px; }
.auth-field input[aria-invalid="true"] { border-color:#ffe0dc; }
.auth-field small { color:rgba(237,241,255,.78); line-height:1.35; }
.auth-error { min-height:1em; color:#ffe0dc; font-weight:700; line-height:1.25; }

.auth-consent { display:grid; gap:5px; margin:1px 0 0; padding:7px 0 0; border:0; border-top:1px solid rgba(237,241,255,.45); }
.auth-consent legend { padding:0 8px 0 0; }
.auth-consent label { display:grid; grid-template-columns:15px minmax(0,1fr); gap:8px; align-items:start; line-height:1.2; cursor:pointer; }
.auth-consent input { width:14px; height:14px; margin:1px 0 0; border-radius:0; accent-color:var(--auth-ice); }

.auth-legal-copy { border-top:1px solid rgba(237,241,255,.35); border-bottom:1px solid rgba(237,241,255,.35); padding:5px 0; }
.auth-legal-copy summary { cursor:pointer; font-weight:700; letter-spacing:.08em; }
.auth-legal-copy p { margin:8px 0 1px; color:rgba(237,241,255,.82); line-height:1.45; }

.auth-submit {
  min-height:clamp(33px,2.5vw,40px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 11px;
  border:2px solid var(--auth-ice);
  border-radius:0;
  color:var(--auth-blue-dark);
  background:var(--auth-ice);
  box-shadow:3px 3px 0 var(--auth-blue-dark);
  font-weight:900;
  cursor:pointer;
  transition:transform 140ms cubic-bezier(.23,1,.32,1),box-shadow 140ms cubic-bezier(.23,1,.32,1);
}
.auth-submit:hover,.auth-submit:focus-visible { color:var(--auth-ice); background:var(--auth-blue-dark); }
.auth-submit:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--auth-blue-dark); }
.auth-submit:disabled { cursor:wait; opacity:.66; }
.auth-status { min-height:1em; margin:0; text-align:right; color:rgba(237,241,255,.78); letter-spacing:.08em; }

@keyframes auth-crt-on {
  0% { opacity:0; transform:scaleX(.35) scaleY(.008); filter:brightness(3); }
  36% { opacity:1; transform:scaleX(.88) scaleY(.012); filter:brightness(2.1); }
  68% { transform:scaleX(1) scaleY(1.035); filter:brightness(1.12); }
  100% { opacity:1; transform:scale(1); filter:brightness(1); }
}
@keyframes auth-crt-exit {
  0% { opacity:1; transform:scale(1); filter:brightness(1); }
  55% { opacity:1; transform:scaleX(.96) scaleY(.018); filter:brightness(2.6); }
  100% { opacity:0; transform:scaleX(.02) scaleY(.006); filter:brightness(3); }
}
@keyframes auth-globe-spin { to { transform:rotate(360deg); } }
@keyframes auth-globe-scan { 0%,100% { transform:translateY(0); opacity:.15; } 50% { transform:translateY(clamp(70px,8vw,116px)); opacity:.85; } }
@keyframes auth-boot-line { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

@media (max-width:760px) {
  .auth-bios-grid { grid-template:26px auto auto 23px / 1fr; }
  .auth-identity { padding:14px 18px; }
  .auth-globe-stage { width:84px; margin-bottom:8px; }
  .auth-identity h1 { font-size:32px; }
  .auth-intro { margin-top:7px; }
  .auth-boot-log { display:none; }
  .auth-form { justify-content:start; gap:8px; padding:15px 18px 20px; }
  .auth-form-heading strong { font-size:1.1em; }
  .auth-field input { min-height:33px; }
  .auth-bios-footer { font-size:6px; }
}

@media (max-height:650px) and (min-width:761px) {
  .auth-globe-stage { width:105px; margin-bottom:9px; }
  .auth-identity h1 { font-size:42px; }
  .auth-intro { margin-top:8px; }
  .auth-boot-log { margin-top:10px; }
  .auth-boot-log li { padding:2px 0; }
  .auth-form { gap:7px; padding:15px 28px; }
  .auth-field input { min-height:31px; }
  .auth-legal-copy p { font-size:.88em; }
}

@media (prefers-reduced-motion:reduce) {
  .auth-gate,.auth-gate.is-authorized,.auth-globe,.auth-globe-scan,.auth-boot-log li { animation:none; }
  .auth-boot-log li { opacity:1; transform:none; }
}
