/* ============================================================
   AEGIS — Lock / activation screen
   ============================================================ */
.lock{
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(800px 500px at 50% 35%, rgba(52,214,232,0.05), transparent 65%),
    var(--bg);
}
.lock__banner{
  position: absolute; top: 0; left: 0; right: 0;
  text-align: center; padding: 6px; font-size: 10px; letter-spacing: 0.26em;
  color: var(--red); background: rgba(255,61,74,0.06);
  border-bottom: 1px solid var(--red-dim);
  animation: banner-pulse 3.2s ease-in-out infinite;
}
.lock__core{ display:flex; flex-direction:column; align-items:center; gap:6px; width: 340px; max-width: 88vw; }

.lock__crest .crest{ width: 84px; height: 84px; }
.crest polygon{ fill:none; stroke: var(--cyan-dim); stroke-width:1.5; }
.crest .crest__inner{ stroke: var(--cyan); opacity:.5; }
.crest .crest__mark{ fill: var(--cyan); font-family: var(--sans); font-size: 30px; font-weight: 600; }

.lock__title{
  font-family: var(--sans); font-size: 38px; font-weight: 700; letter-spacing: 0.42em;
  color: var(--txt-hi); margin-left: 0.42em; text-shadow: 0 0 24px rgba(52,214,232,0.25);
}
.lock__sub{ font-size: 10px; letter-spacing: 0.34em; color: var(--txt-dim); margin-bottom: 26px; }

.lock__prompt{ width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; }
.lock__caret-label{ font-size: 9px; letter-spacing: 0.28em; color: var(--txt-faint); }
.lock__field{
  width: 100%; display:flex; align-items:center; justify-content:center; gap:2px;
  height: 44px; border: 1px solid var(--edge-hi); background: rgba(0,0,0,0.3);
  font-size: 22px; letter-spacing: 0.5em; color: var(--cyan);
}
.lock__mask{ min-height: 1em; }
.lock__caret{ color: var(--cyan); animation: blink 1.05s steps(1) infinite; }
.lock__hint{ font-size: 10px; letter-spacing: 0.16em; color: var(--txt-faint); min-height: 14px; }
.lock__hint.err{ color: var(--red); animation: shake .4s; }
.lock__hint.ok{ color: var(--green); }

/* auth ring */
.lock__auth{ margin-top: 18px; }
.auth-ring{
  position: relative; width: 132px; height: 132px; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
}
.auth-ring svg{ position:absolute; inset:0; width:100%; height:100%; transform: rotate(-90deg); }
.auth-ring__track{ fill:none; stroke: var(--edge-hi); stroke-width: 3; }
.auth-ring__fill{
  fill:none; stroke: var(--cyan); stroke-width: 3;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  filter: drop-shadow(0 0 6px rgba(52,214,232,0.6));
  transition: stroke-dashoffset .08s linear;
}
.auth-ring__label{
  font-size: 10px; letter-spacing: 0.18em; color: var(--txt-dim); text-align:center; line-height:1.5;
  pointer-events: none;
}
.auth-ring.active .auth-ring__label{ color: var(--cyan); }

/* boot sequence */
.lock__boot{
  width: 100%; min-height: 140px; text-align: left; font-size: 11px;
  color: var(--green); letter-spacing: 0.06em; line-height: 1.7;
}
.lock__boot .ok{ color: var(--cyan); }

.lock__footer{
  position: absolute; bottom: 0; left:0; right:0;
  display:flex; align-items:center; justify-content:center; gap: 28px;
  padding: 7px; font-size: 9px; letter-spacing: 0.18em; color: var(--txt-faint);
  border-top: 1px solid var(--edge);
}
.lock__warn{ color: var(--red-dim); }

@media (max-width: 520px){
  .lock__footer{ gap: 12px; flex-wrap: wrap; }
  .lock__title{ font-size: 30px; }
}
