/*!
 * MediaNet AV Custom Logo Override
 * Replaces the GLPI logo with MediaNet AV logo
 * High specificity to override all GLPI CSS
 */

/* Main navbar logo (white logo for dark navbar) */
body .page .navbar-brand .glpi-logo {
    background: url("../pics/MVAN-w-logo.png") no-repeat center center !important;
    background-size: contain !important;
    height: 55px !important;
    width: 180px !important;
}

/* Additional fallback with high specificity */
html body .page .glpi-logo {
    background: url("../pics/MVAN-w-logo.png") no-repeat center center !important;
    background-size: contain !important;
    height: 55px !important;
    width: 180px !important;
}

/* Login page logo (black vertical logo with tagline) - Ultra high specificity */
body.welcome-anonymous div.page-anonymous div.text-center div.col-md span.glpi-logo.mb-4[title="GLPI"] {
    /* Nuclear option - completely reset everything */
    all: unset !important;
    display: block !important;
    width: 300px !important;
    height: 200px !important;
    margin: 0 auto 2rem auto !important;
    background: url("../pics/MVAN-black-vertical-logo.png") no-repeat center center !important;
    background-size: contain !important;
    /* Override any CSS variables */
    --logo: none !important;
    --logo-url: none !important;
}

/* Additional high specificity selectors */
.page-anonymous .glpi-logo,
.page-anonymous .glpi-logo.mb-4,
body.welcome-anonymous .page-anonymous .glpi-logo,
html body.welcome-anonymous div.page-anonymous span.glpi-logo {
    /* Completely reset background and set our logo */
    background: none !important;
    background-image: url("../pics/MVAN-black-vertical-logo.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    width: 300px !important;
    height: 200px !important;
    display: block !important;
    margin: 0 auto 2rem auto !important;
    /* Override common CSS variables */
    --logo: none !important;
    --logo-url: none !important;
    --glpi-logo: none !important;
}

/* Force remove GLPI logo on anonymous pages */
.page-anonymous .glpi-logo::before,
.page-anonymous .glpi-logo::after {
    display: none !important;
    content: none !important;
    background: none !important;
}