/* ======================================================
   KAP Expertise – Login GLPI (VERSION STABLE)
   ====================================================== */

/* --- Fond global --- */
body.welcome-anonymous {
    background-color: #f4f6f8 !important; /* gris clair pro */
}

/* --- Carte de connexion --- */
.page-anonymous .card {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    border: none;
}

/* --- Suppression TOTALE du logo GLPI (tous navigateurs) --- */
.page-anonymous .glpi-logo,
.page-anonymous .glpi-logo::before,
.page-anonymous .glpi-logo::after,
.page-anonymous span[title="GLPI"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- Titres --- */
.page-anonymous h2,
.page-anonymous h3 {
    color: #2f3a3f; /* gris foncé KAP */
    font-weight: 600;
}

/* --- Texte --- */
.page-anonymous p,
.page-anonymous label {
    color: #4a4a4a;
}

/* --- Champs --- */
.page-anonymous input.form-control,
.page-anonymous select.form-control {
    border-radius: 6px;
    border: 1px solid #d0d5da;
}

.page-anonymous input.form-control:focus,
.page-anonymous select.form-control:focus {
    border-color: #0f6c78; /* bleu KAP */
    box-shadow: 0 0 0 0.15rem rgba(15, 108, 120, 0.25);
}

/* --- Bouton principal --- */
.page-anonymous .btn-primary {
    background-color: #f4b740; /* jaune/or KAP */
    border-color: #f4b740;
    color: #000;
    font-weight: 600;
}

.page-anonymous .btn-primary:hover {
    background-color: #e6a92f;
    border-color: #e6a92f;
}

/* --- Liens --- */
.page-anonymous a {
    color: #0f6c78;
}

.page-anonymous a:hover {
    color: #0c5861;
    text-decoration: underline;
}

/* --- Footer --- */
.page-anonymous .text-muted {
    color: #6c757d;
}
/* ======================================================
   KAP – Masquer "Source de connexion" sur la page login
   (sans :has, compatible Chrome/Edge/Firefox)
   ====================================================== */

/* Cache le label "Source de connexion" */
.page-anonymous label[for^="dropdown_auth"],
.page-anonymous label[for*="dropdown_auth"] {
  display: none !important;
}

/* Cache le select (la liste déroulante) */
.page-anonymous select[id^="dropdown_auth"],
.page-anonymous select[name*="auth"],
.page-anonymous select[name*="login_auth"] {
  display: none !important;
}

/* Cache le conteneur parent (le bloc avec margin mb-3) */
.page-anonymous label[for^="dropdown_auth"],
.page-anonymous label[for*="dropdown_auth"] {
  margin: 0 !important;
}

.page-anonymous label[for^="dropdown_auth"] + select,
.page-anonymous label[for*="dropdown_auth"] + select {
  display: none !important;
}

/* Si GLPI a mis tout ça dans un .mb-3, on masque le bloc */
.page-anonymous .mb-3 {
  /* on ne touche pas toutes les mb-3, seulement celles qui contiennent dropdown_auth via sélecteurs ci-dessus */
}

.page-anonymous .mb-3 label[for^="dropdown_auth"],
.page-anonymous .mb-3 label[for*="dropdown_auth"] {
  display: none !important;
}
.page-anonymous .mb-3 select[id^="dropdown_auth"],
.page-anonymous .mb-3 select[name*="auth"],
.page-anonymous .mb-3 select[name*="login_auth"] {
  display: none !important;
}

/* Bonus : retire l'espace si le bloc reste visible */
.page-anonymous .mb-3 label[for^="dropdown_auth"],
.page-anonymous .mb-3 label[for*="dropdown_auth"] {
  padding: 0 !important;
}
/* ======================================================
   GLPI – Suppression COMPLETE du bloc "Source de connexion"
   (label + select + espace)
   ====================================================== */

/* Cas standard GLPI : bloc mb-3 contenant le select d'auth */
.page-anonymous .mb-3:has(select[id^="dropdown_auth"]),
.page-anonymous .mb-3:has(select[name*="auth"]) {
    display: none !important;
}

/* Fallback pour navigateurs sans :has (sécurité) */
.page-anonymous select[id^="dropdown_auth"],
.page-anonymous select[name*="auth"] {
    display: none !important;
}
.page-anonymous select[id^="dropdown_auth"]::parent,
.page-anonymous select[name*="auth"]::parent {
    display: none !important;
}

