.auth-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(9, 13, 23, 0.78), rgba(15, 23, 38, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(91, 141, 239, 0.08);
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 220deg,
        rgba(91, 141, 239, 0.0),
        rgba(91, 141, 239, 0.45),
        rgba(183, 156, 255, 0.30),
        rgba(132, 172, 255, 0.28),
        rgba(91, 141, 239, 0.0)
    );
    filter: blur(14px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.auth-hero__body {
    position: relative;
    z-index: 1;
    padding: 2.3rem 2rem;
}

.auth-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-neon);
    background: rgba(91, 141, 239, 0.13);
    border: 1px solid rgba(91, 141, 239, 0.45);
    box-shadow: 0 0 28px rgba(91, 141, 239, 0.25);
}

.auth-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    max-width: 40ch;
    margin: 0 auto 1.3rem;
    color: var(--text-secondary) !important;
}

.auth-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: #e9fbff !important;
    text-decoration: none;
    border: 1px solid rgba(91, 141, 239, 0.5);
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.22), rgba(124, 58, 237, 0.24));
    box-shadow:
        0 14px 30px rgba(91, 141, 239, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 141, 239, 0.8);
    box-shadow:
        0 18px 40px rgba(91, 141, 239, 0.26),
        0 0 24px rgba(91, 141, 239, 0.3);
}

.auth-hero--error {
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(251, 113, 133, 0.12);
}

.auth-hero--error::before {
    background: conic-gradient(
        from 220deg,
        rgba(251, 113, 133, 0.0),
        rgba(251, 113, 133, 0.38),
        rgba(251, 191, 36, 0.2),
        rgba(183, 156, 255, 0.2),
        rgba(251, 113, 133, 0.0)
    );
}

.auth-icon-wrap--error {
    color: var(--danger-neon);
    background: rgba(251, 113, 133, 0.13);
    border: 1px solid rgba(251, 113, 133, 0.45);
    box-shadow: 0 0 28px rgba(251, 113, 133, 0.25);
}

.auth-alert {
    margin: 0 auto 1.2rem;
    max-width: 46ch;
    border-radius: 12px;
    border: 1px solid rgba(251, 113, 133, 0.45);
    background: rgba(251, 113, 133, 0.12);
    color: #ffd7e2;
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
}

.auth-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-cta--secondary {
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.auth-cta--secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Login v2 — "Orbital Glass" (mission-control console)
   ============================================================ */
/* Login token scope + full-height stage (hide inherited chrome, center the card) */
body.lfx-login {
  --azure:#5b8def; --violet:#b79cff;
  --ok:#34d399; --warn:#fbbf24; --danger:#fb7185;
  --t1:#eaf0fa; --t2:#a6b4c8; --t3:#6b7b92;
  --ink:#090d17; --ink-2:#070a12;
  --hair:rgba(255,255,255,.10); --hair-soft:rgba(255,255,255,.06);
  --rsm:7px; --rmd:10px; --rlg:14px;
  --mono:ui-monospace,"SF Mono","JetBrains Mono","Cascadia Mono",Menlo,Consolas,monospace;
  overflow: hidden;
}
body.lfx-login .modern-header { display: none !important; }
body.lfx-login .site-footer { display: none !important; }
body.lfx-login .container-fluid.flex-grow-1 {
  padding: 0; margin: 0; max-width: none;
  display: grid; place-items: center; min-height: 100vh;
}

.lfx-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 720px at 82% -12%, rgba(91,141,239,.16), transparent 60%),
    radial-gradient(1000px 640px at 4% 108%, rgba(183,156,255,.12), transparent 58%),
    radial-gradient(700px 700px at 50% 50%, rgba(15,23,38,.55), transparent 70%),
    var(--ink); }
#lfx-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lfx-aurora { position: absolute; left: -15%; right: -15%; top: 14%; height: 46%;
  background:
    radial-gradient(60% 120% at 20% 50%, rgba(91,141,239,.22), transparent 70%),
    radial-gradient(55% 120% at 70% 40%, rgba(183,156,255,.20), transparent 72%);
  filter: blur(48px); opacity: .9; transform: rotate(-8deg);
  animation: lfx-aurora 26s ease-in-out infinite alternate; }
@keyframes lfx-aurora {
  0% { transform: rotate(-8deg) translate3d(-3%,0,0) scale(1.02); }
  100% { transform: rotate(-5deg) translate3d(4%,-2%,0) scale(1.08); } }
.lfx-limb { position: absolute; left: 50%; bottom: -82vh; transform: translateX(-50%);
  width: 175vw; height: 120vh; border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 20%, #11192b 0%, #0a1120 55%, #070a12 100%);
  box-shadow: 0 -1px 0 1px rgba(140,165,210,.10), 0 -30px 120px rgba(91,141,239,.18); }
.lfx-limb::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; filter: blur(1px);
  background: linear-gradient(90deg, transparent, rgba(183,156,255,.5) 30%, rgba(91,141,239,.7) 50%, rgba(183,156,255,.5) 70%, transparent); }

.lfx-card { position: relative; z-index: 2; width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(20,28,46,.78), rgba(11,16,28,.82));
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--hair); border-radius: var(--rlg);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 80px -28px rgba(0,0,0,.85), 0 0 0 1px rgba(91,141,239,.04);
  padding: 36px 36px 28px; overflow: hidden; }
.lfx-card__edge { position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--azure), var(--violet), var(--azure), transparent);
  background-size: 220% 100%; animation: lfx-edge 9s linear infinite; opacity: .9; }
@keyframes lfx-edge { to { background-position: 220% 0; } }

.lfx-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.lfx-mark { position: relative; width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: radial-gradient(circle at 30% 28%, rgba(91,141,239,.5), rgba(183,156,255,.18) 70%, transparent 75%),
    linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  border: 1px solid var(--hair); display: grid; place-items: center; }
.lfx-mark::before { content: ""; width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eef2ff, #9aa6c8 65%, #5b6688);
  box-shadow: inset -3px -2px 5px rgba(9,13,23,.8), 0 0 10px rgba(183,156,255,.5); }
.lfx-mark::after { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(183,156,255,.35); transform: scaleY(.5) rotate(-18deg); }
.lfx-brand__name { font-size: 15px; font-weight: 600; letter-spacing: .2px; color: var(--t1); }
.lfx-brand__name b { color: var(--violet); font-weight: 600; }
.lfx-brand__sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--t3); margin-top: 3px; font-family: var(--mono); }

.lfx-head { margin-bottom: 22px; }
.lfx-head h1 { margin: 0; font-size: clamp(26px, 4.5vw, 32px); line-height: 1.08; font-weight: 600;
  letter-spacing: -.6px; text-wrap: balance; color: var(--t1); }
.lfx-head h1 span { background: linear-gradient(110deg, var(--azure), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lfx-head p { margin: 11px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--t2); max-width: 36ch; }

.lfx-telemetry { margin: 0 0 24px; padding: 14px 15px 16px;
  border: 1px solid var(--hair-soft); border-radius: var(--rmd);
  background: linear-gradient(180deg, rgba(18,27,44,.5), rgba(10,17,32,.35)); }
.lfx-telemetry__cap { display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; margin-bottom: 16px; letter-spacing: .02em; }
.lfx-telemetry__route { color: var(--t2); }
.lfx-telemetry__state { color: var(--azure); text-transform: uppercase; letter-spacing: .18em;
  font-size: 9.5px; display: inline-flex; align-items: center; gap: 6px; }
.lfx-telemetry__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--azure);
  box-shadow: 0 0 8px var(--azure); animation: lfx-pulse 1.6s ease-in-out infinite; }
.lfx-conduit { position: relative; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.lfx-conduit::before { content: ""; position: absolute; left: 9%; right: 9%; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--ok), var(--azure) 60%, rgba(107,123,146,.35) 60%); border-radius: 2px; }
.lfx-conduit__flow { position: absolute; top: 7px; left: 9%; width: 24px; height: 4px; margin-top: -1px;
  border-radius: 4px; background: linear-gradient(90deg, transparent, var(--violet), transparent);
  filter: blur(.5px); animation: lfx-flow 3.4s linear infinite; }
.lfx-node { position: relative; z-index: 1; justify-self: center; font-family: var(--mono);
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding-top: 20px; color: var(--t3); text-align: center; }
.lfx-node::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--t3); }
.lfx-node--done { color: var(--t2); }
.lfx-node--done::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.5); }
.lfx-node--active { color: var(--azure); }
.lfx-node--active::before { background: var(--azure); border-color: var(--azure); animation: lfx-ring 1.8s ease-out infinite; }

.lfx-sso { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%;
  text-decoration: none; cursor: pointer; border: 0; font-family: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: .1px; color: #08101f;
  padding: 14px 18px; border-radius: var(--rmd);
  background: linear-gradient(180deg, #79a3f6, var(--azure));
  box-shadow: 0 10px 26px -10px rgba(91,141,239,.7), 0 1px 0 rgba(255,255,255,.4) inset;
  transition: transform .18s ease, box-shadow .25s ease, filter .25s ease; }
.lfx-sso:hover { transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 16px 34px -12px rgba(91,141,239,.8), 0 1px 0 rgba(255,255,255,.5) inset; }
.lfx-sso:active { transform: translateY(0); }
.lfx-sso:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--violet), 0 10px 26px -10px rgba(91,141,239,.7); }
.lfx-sso__ico { width: 18px; height: 18px; flex: none; }
.lfx-sso__ico path { stroke: #08101f; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.lfx-note { display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--t3); text-align: center; }
.lfx-note__ico { width: 14px; height: 14px; flex: none; color: var(--ok); }
.lfx-note__ico path { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.lfx-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hair-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--t3); }
.lfx-foot__status { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); }
.lfx-foot__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: lfx-halo 2.4s ease-out infinite; }
.lfx-foot__meta { font-variant-numeric: tabular-nums; }

@keyframes lfx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes lfx-flow { 0% { left: 9%; opacity: 0; } 10% { opacity: 1; } 55% { left: 50%; opacity: 1; } 65% { opacity: 0; } 100% { left: 50%; opacity: 0; } }
@keyframes lfx-ring { 0% { box-shadow: 0 0 0 0 rgba(91,141,239,.55); } 100% { box-shadow: 0 0 0 8px rgba(91,141,239,0); } }
@keyframes lfx-halo { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

@media (max-width: 440px) {
  .lfx-card { padding: 28px 22px 22px; }
  .lfx-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lfx-aurora, #lfx-stars, .lfx-card__edge, .lfx-foot__dot,
  .lfx-telemetry__state::before, .lfx-conduit__flow, .lfx-node--active::before { animation: none !important; }
  .lfx-conduit__flow { display: none; }
  .lfx-sso:hover { transform: none; }
}
