/* ── Login page: live branch network in the right-hand panel ──
   (login-network.js + glow-map kit). The stock photo goes; the panel's own
   blue gradient (.bg-Gradient, now opaque) is the "land", the India tile is
   recoloured over it by #gmGlowNetwork, and the lanes glow gold on top.
   Loaded before app.min.css, hence the two-class selectors. */
.auth-bg.has-network {
    position: relative;
    overflow: hidden;
    background-image: none;
    background-color: #14366b;
}
.auth-bg.has-network .bg-overlay { opacity: 1; }

.login-network {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* A soft vignette, plus a bottom fade: when the cover crop is horizontal the
       tile's bottom edge (OLA's logo sits bottom-left) is the panel's. */
    -webkit-mask-image:
        radial-gradient(ellipse 72% 78% at 50% 50%, #000 55%, rgba(0, 0, 0, 0.6) 80%, transparent 100%),
        linear-gradient(to top, transparent 0, transparent 26px, #000 96px);
    mask-image:
        radial-gradient(ellipse 72% 78% at 50% 50%, #000 55%, rgba(0, 0, 0, 0.6) 80%, transparent 100%),
        linear-gradient(to top, transparent 0, transparent 26px, #000 96px);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.login-network .glm-img.is-loaded { opacity: 0.7; }
/* The panel is big: marks a notch larger than on the dashboard banner. */
.login-network .glm-label { font-size: 12px; stroke-width: 3px; }
.login-network .glm-lane { stroke: rgba(253, 230, 138, 0.4); }

/* Chip + wallpaper toggle, bottom-left. Shown once login-network.js is running
   (≥ 768px); the chip only while the map is up, the toggle in both modes. */
.login-network-bar {
    position: absolute;
    left: 28px;
    bottom: 26px;
    z-index: 2;
    display: none;
    align-items: center;
    gap: 8px;
}
.auth-bg.bg-toggle-ready { position: relative; }            /* anchors the bar in wallpaper mode too */
.auth-bg.bg-toggle-ready .login-network-bar { display: flex; }
.auth-bg.wallpaper-photo .login-network,
.auth-bg.wallpaper-photo .login-network-chip { display: none; }
.login-network-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.login-bg-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}
.login-bg-toggle:hover { background: rgba(15, 23, 42, 0.5); transform: scale(1.06); }
.login-bg-toggle:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }
.login-network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.6);
    animation: loginNetDot 2.6s ease-out infinite;
}
@keyframes loginNetDot {
    0%   { box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.6); }
    80%  { box-shadow: 0 0 0 8px rgba(253, 230, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 230, 138, 0); }
}

@media (max-width: 767.98px) {
    .login-network,
    .login-network-bar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .login-network-dot { animation: none; }
}
