/* X2PRO logo halo: lightweight CSS-only animation */
.logo-orbit {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    isolation: isolate;
    overflow: visible;
}

.logo-orbit::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 158, 255, .78) 0%, rgba(33, 100, 255, .34) 34%, rgba(14, 37, 130, .12) 57%, transparent 71%);
    filter: blur(7px);
    transform: scale(.92);
    animation: x2pro-logo-pulse 2.8s ease-in-out infinite;
}

.logo-orbit::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -7%;
    border: 1px solid rgba(114, 193, 255, .42);
    border-radius: 50%;
    box-shadow: inset 0 0 16px rgba(48, 150, 255, .36), 0 0 16px rgba(35, 125, 255, .42);
    animation: x2pro-logo-spin 8s linear infinite;
}

.logo-orbit-image {
    position: relative;
    z-index: 2;
    display: block;
    filter: drop-shadow(0 0 7px rgba(90, 182, 255, .78));
    animation: x2pro-logo-float 3.4s ease-in-out infinite;
}

.logo-orbit-ring {
    position: absolute;
    z-index: 1;
    inset: -15%;
    border: 1px solid rgba(104, 183, 255, .28);
    border-radius: 48% 52% 46% 54%;
    pointer-events: none;
}

.logo-orbit-ring::before,
.logo-orbit-ring::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bce7ff;
    box-shadow: 0 0 10px 3px rgba(69, 168, 255, .85);
}

.logo-orbit-ring::before { top: 10%; left: 19%; }
.logo-orbit-ring::after { right: 12%; bottom: 16%; }
.logo-orbit-ring-a { animation: x2pro-logo-spin 6.5s linear infinite; }
.logo-orbit-ring-b {
    inset: -10% 2%;
    border-color: rgba(74, 143, 255, .34);
    transform: rotate(72deg);
    animation: x2pro-logo-spin-reverse 9.5s linear infinite;
}

.logo-orbit-login { overflow: visible; }
.logo-orbit-header { width: 72px; height: 72px; }
.logo-orbit-header::before { filter: blur(5px); }
.logo-orbit-header .logo-orbit-ring::before,
.logo-orbit-header .logo-orbit-ring::after { width: 4px; height: 4px; }

@keyframes x2pro-logo-pulse {
    0%, 100% { opacity: .68; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.12); }
}
@keyframes x2pro-logo-spin { to { transform: rotate(360deg); } }
@keyframes x2pro-logo-spin-reverse { to { transform: rotate(-288deg); } }
@keyframes x2pro-logo-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-orbit::before, .logo-orbit::after, .logo-orbit-image, .logo-orbit-ring { animation: none !important; }
}

/* The login logo is a block-level grid so it remains centered in the card. */
.login-card > .logo-orbit-login {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    justify-self: center;
}

/* Connection network around the X2PRO marks. */
.logo-orbit-network {
    position: absolute;
    z-index: 0;
    inset: -17%;
    width: 134%;
    height: 134%;
    overflow: visible;
    pointer-events: none;
    animation: x2pro-network-drift 7s ease-in-out infinite;
}
.logo-orbit-network path {
    fill: none;
    stroke-linecap: round;
}
.logo-orbit-network .network-link-a {
    stroke: rgba(100, 204, 255, .58);
    stroke-width: 1.3;
    stroke-dasharray: 3 8;
    animation: x2pro-data-flow 1.8s linear infinite;
}
.logo-orbit-network .network-link-b {
    stroke: rgba(66, 132, 255, .3);
    stroke-width: .8;
}
.logo-orbit-network circle {
    fill: #c9f2ff;
    filter: drop-shadow(0 0 4px rgba(84, 188, 255, 1));
    animation: x2pro-node-pulse 1.9s ease-in-out infinite;
}
.logo-orbit-network circle:nth-of-type(2) { animation-delay: -.45s; }
.logo-orbit-network circle:nth-of-type(3) { animation-delay: -.95s; }
.logo-orbit-network circle:nth-of-type(4) { animation-delay: -1.35s; }
.logo-orbit-network .network-core { fill: #fff; animation-delay: -.7s; }
@keyframes x2pro-data-flow { to { stroke-dashoffset: -22; } }
@keyframes x2pro-network-drift {
    0%, 100% { opacity: .55; transform: rotate(-4deg) scale(.97); }
    50% { opacity: 1; transform: rotate(4deg) scale(1.03); }
}
@keyframes x2pro-node-pulse {
    0%, 100% { opacity: .55; transform: scale(.72); transform-origin: center; }
    50% { opacity: 1; transform: scale(1.35); transform-origin: center; }
}
