/* NEXUS web session gate — keeps the terminal aesthetic of QUANT OS. */
.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(201, 245, 107, 0.11), transparent 64%),
    rgba(4, 6, 5, 0.86);
  backdrop-filter: blur(18px) saturate(1.1);
}
.auth-layer[hidden] { display: none !important; }
.auth-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(201, 245, 107, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 245, 107, 0.13) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}
.auth-card {
  position: relative;
  width: min(396px, 100%);
  padding: 26px;
  border: 1px solid rgba(201, 245, 107, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(20, 28, 19, 0.97), rgba(8, 12, 9, 0.98));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  animation: auth-rise 0.32s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 245, 107, 0.6), transparent);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}
.auth-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 245, 107, 0.3);
  border-radius: 12px;
  color: var(--lime, #c9f56b);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  background: rgba(201, 245, 107, 0.08);
  box-shadow: inset 0 0 24px rgba(201, 245, 107, 0.06);
}
.auth-brand strong {
  display: block;
  color: var(--text, #eef2ea);
  font-size: 13px;
  letter-spacing: 0.18em;
}
.auth-brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #96a198);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}
.auth-card h2 {
  margin: 0;
  color: var(--text, #eef2ea);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.auth-copy {
  margin: 8px 0 18px;
  color: var(--muted, #96a198);
  font-size: 12px;
  line-height: 1.7;
}
.auth-copy code {
  color: var(--lime, #c9f56b);
  font-family: var(--mono);
  font-size: 11px;
}
.auth-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2, #748078);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.auth-input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(236, 245, 232, 0.12);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text, #eef2ea);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-input:focus {
  border-color: rgba(201, 245, 107, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 245, 107, 0.08);
}
.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.auth-primary,
.auth-secondary {
  flex: 1;
  padding: 11px 12px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.auth-primary {
  border: 1px solid rgba(201, 245, 107, 0.4);
  color: #0a0d08;
  background: var(--lime, #c9f56b);
  font-weight: 700;
}
.auth-primary:hover { background: var(--lime-bright, #ddff8e); }
.auth-primary:disabled { opacity: 0.55; cursor: wait; }
.auth-secondary {
  border: 1px solid rgba(236, 245, 232, 0.12);
  color: var(--muted, #96a198);
  background: rgba(255, 255, 255, 0.025);
}
.auth-secondary:hover { color: var(--text, #eef2ea); border-color: rgba(236, 245, 232, 0.22); }
.auth-primary:active, .auth-secondary:active { transform: translateY(1px); }
.auth-error {
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 115, 103, 0.28);
  border-radius: 8px;
  color: #ffb4ab;
  background: rgba(255, 115, 103, 0.09);
  font-size: 11px;
  line-height: 1.55;
}
.auth-error[hidden] { display: none !important; }
.auth-hint {
  margin: 13px 0 0;
  color: var(--dim, #576259);
  font-size: 10px;
  line-height: 1.65;
}
.auth-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(236, 245, 232, 0.07);
  color: var(--dim, #576259);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.auth-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime, #c9f56b);
  box-shadow: 0 0 8px rgba(201, 245, 107, 0.8);
}
body.auth-locked { overflow: hidden; }
body.auth-locked .boot-screen { opacity: 0; pointer-events: none; }
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .auth-card { padding: 21px; border-radius: 14px; }
  .auth-card h2 { font-size: 21px; }
  .auth-actions { flex-direction: column; }
}
