/* ============================================================
   core-login-overrides.css  -  BRIDEP Core. - 
   ------------------------------------------------------------
   Surcharges minimales appliquees uniquement a la page de login
   pour :
   1. Reduire un peu la hauteur du contenu (panneau gauche)
   2. Ajouter un footer global sous la fenetre de login
   ============================================================ */

/* 1. Compacter le panneau gauche (branding/headlines/features) */
.panel-left {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

.brand-logo-box {
    width: 140px !important;
    height: 50px !important;
    padding: 8px 12px !important;
}

.headline {
    font-size: 26px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
}

.headline-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 4px !important;
}

.features {
    gap: 6px !important;
}

.feature {
    padding: 7px 12px !important;
}

.feature-icon {
    width: 30px !important;
    height: 30px !important;
}

.feature-title {
    font-size: 13px !important;
}

.feature-desc {
    font-size: 11px !important;
}

/* 2. Compacter le panneau de droite (form) */
.panel-right {
    padding-top: 30px !important;
    padding-bottom: 18px !important;
}

.form-header {
    margin-bottom: 12px !important;
}

.form-title {
    font-size: 24px !important;
}

.form-subtitle {
    font-size: 13px !important;
    margin-top: 4px !important;
}

.notice-2fa {
    padding: 10px 14px !important;
    margin-top: 4px !important;
}

.notice-title {
    font-size: 13px !important;
}

.notice-desc {
    font-size: 11px !important;
    line-height: 1.5 !important;
}

/* 3. Footer global Core (sous la fenetre de login) */
.core-login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(15, 31, 51, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.5;
}

.core-login-footer .core-footer-strong {
    color: rgba(245, 200, 66, 0.95);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.core-login-footer a {
    color: rgba(245, 200, 66, 0.95);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.core-login-footer a:hover {
    color: #fc9401;
    text-decoration: underline;
}

.core-login-footer .core-footer-version {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    margin-left: 4px;
}

/* Sur mobile, le footer reste fixe mais plus compact */
@media (max-width: 768px) {
    .core-login-footer {
        font-size: 10px;
        padding: 8px 12px;
        line-height: 1.4;
    }
}

/* ============================================================
   4. Neutralisation du double assombrissement des lightbox
   ------------------------------------------------------------
   Quand une lightbox (modale OTP, mot de passe oublié, etc.) est
   chargée dans #loader ou #loader2, son overlay interne fait
   doublon avec le fond déjà assombri du loader hôte. Résultat :
   un fond trop sombre. On rend l'overlay interne transparent ;
   le loader continue d'assurer l'assombrissement et le blur.
   L'overlay garde son rôle de conteneur de centrage (flex).
   ============================================================ */
#loader .lb-2fa-overlay,
#loader .lb-forgot-overlay,
#loader .lb-profil-otp-overlay,
#loader2 .lb-2fa-overlay,
#loader2 .lb-forgot-overlay,
#loader2 .lb-profil-otp-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================================
   5. Nouveau bloc d'en-tete branding (.lp-brand-*)
   ------------------------------------------------------------
   Inspire du pattern E-Justice Burundi : logo carre + titre +
   sous-titre + badge "SUIVI & EVALUATION" en jaune.
   Prefixe .lp-brand-* pour cohabiter sans conflit avec
   l'ancien bloc .brand-* (qui n'est plus utilise dans le DOM).
   ============================================================ */

/* Conteneur racine : 2 lignes (head + badge) */
.lp-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 6px;
    animation: fadeUp 0.6s 0.1s ease both;
}

/* Ligne 1 : logo a gauche + (titre + sous-titre) a droite */
.lp-brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logo carre fond blanc, coins arrondis, ombre douce */
.lp-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.lp-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.lp-brand-logo-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #1F4E79;
    letter-spacing: 1px;
}

/* Bloc titre + sous-titre, empile en colonne */
.lp-brand-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lp-brand-title {
    font-family: 'Nunito', 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.3px;
    margin: 0;
}

.lp-brand-subtitle {
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
    max-width: 360px;
    margin: 0;
}

/* Ligne 2 : badge jaune "SUIVI & EVALUATION" */
.lp-brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fc9401;
    font-family: 'Nunito', sans-serif;
}

.lp-brand-badge-rule {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #fc9401;
    border-radius: 2px;
    flex-shrink: 0;
}

.lp-brand-badge i {
    font-size: 13px;
    color: #fc9401;
}

.lp-brand-badge-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #fc9401;
}

/* Responsive : ecrans tres etroits */
@media (max-width: 480px) {
    .lp-brand-logo {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }
    .lp-brand-title {
        font-size: 22px;
    }
    .lp-brand-subtitle {
        font-size: 11px;
        line-height: 1.4;
    }
    .lp-brand-badge-text {
        font-size: 10px;
        letter-spacing: 1.8px;
    }
}

/* ============================================================
   6. Compactage supplementaire de la hauteur globale
   ------------------------------------------------------------
   Objectif : reduire la hauteur visuelle du bloc .login-page
   sans degrader la lisibilite (suite au retrait de la mention
   "Espace administration" et a l'introduction du badge
   "SUIVI & EVALUATION" qui prend deja ce role visuel).
   ============================================================ */

/* Reduit le padding vertical exterieur de la page (gradient de fond) */
.login-page {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* Panneau gauche : descend de 22px a 18px */
.panel-left {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* Panneau droit : descend de 30px a 22px */
.panel-right {
    padding-top: 22px !important;
}

/* ============================================================
   7. Resserrer l'espacement vertical entre les 3 blocs du
      panneau gauche (lp-brand / left-headline / features)
   ------------------------------------------------------------
   Cause de l'espacement excessif : .panel-left utilise par
   defaut "justify-content: space-between" qui repartit tout
   l'espace restant entre les 3 blocs (panneau droit plus
   haut). On bascule en flex-start avec un gap court.
   ============================================================ */
.panel-left {
    justify-content: flex-start !important;
    gap: 20px;
}

/* ============================================================
   8. Fond du login : vert BRIDEP plus lumineux avec halo radial
   ------------------------------------------------------------
   Combine 2 couches :
   - radial-gradient : halo vert clair decentré (haut-gauche) qui
     simule un eclairage solaire et cree l'effet "brillance"
   - linear-gradient : base verte BRIDEP officielle (#026325)
     legerement releve vers un vert vibrant au centre
   Lisibilite du texte blanc preservee (contrastes verifies).
   ============================================================ */
.login-page {
    background:
        radial-gradient(circle at 25% 40%, rgba(134, 239, 172, 0.45) 0%, transparent 55%),
        linear-gradient(135deg, #026325 0%, #2EA630 55%, #166534 100%) !important;
}

/* ============================================================
   9. Vert du .panel-left - Niveau A (eclaircissement +8%)
   ------------------------------------------------------------
   Le #01491b original devient le point sombre (fin de gradient)
   et le #026325 BRIDEP officiel passe en point de depart. Le
   milieu monte legerement a #28A028 pour un peu plus de vie.
   Test compare aux niveaux B (+15%) et C (+25%).
   ============================================================ */
.panel-left {
    background: linear-gradient(135deg, #026325 0%, #28A028 70%, #01491b 100%) !important;
}
