/*
 * Custom CSS Melis — injecté via le hook EVENT_LAYOUT_RESOURCES du plugin
 * MelisCore (voir plugins/MelisCore/MelisCore.php -> resources()).
 *
 * - Adapte le logo Melis Platform sur la page de login (responsive).
 * - Remplace le titre texte du top header par le logo Melis Platform
 *   une fois loggué.
 */

/* --- Page de login --------------------------------------------------------- */
/* Le logo (1261x224, ratio ~5.63:1) dépasse le viewport sans contrainte. */
.login-logo {
    text-align: center;
}

.login-logo img {
    max-width: 100%;
    height: auto;
}

/* --- Top header (post-login) ---------------------------------------------- */
/* Remplace le texte de window_title (`Mantis - Melis Technology`) par le logo
 * Melis Platform en background. text-indent cache le texte (reste accessible
 * aux lecteurs d'écran), overflow:hidden évite tout débordement visuel. */
.navbar-brand {
    background-image: url('/images/melis_platform_logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    height: 40px;
    width: 230px;            /* ~40 * 5.63 (ratio du logo) */
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
