/* =====================================================================
   ANTIC - Personnalisation de la page de login Wazuh Dashboard
   Applique UNIQUEMENT a la page de login : .login-wrapper n'existe que
   sur /app/login. Fond plein ecran via un pseudo-element fixe (compatible
   tous navigateurs, sans :has()), logo compact, textes lisibles, et carte
   de connexion blanche pour rester visible sans defilement.
   ===================================================================== */

/* --- Fond plein ecran (thematique securite) limite a la page de login --- */
/* Le pseudo-element fixe couvre tout l'ecran ; z-index:-1 le place au-dessus
   du fond blanc du body mais sous la carte de connexion. */
.login-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0a1a2f url("/ui/antic/wazuh_login_bg.jpg") center center / cover no-repeat;
}
/* Repli couleur si :has() est supporte (sans effet sinon) */
body:has(.login-wrapper) {
  background: #0a1a2f !important;
}

/* --- Carte de connexion lisible par-dessus le fond sombre --- */
.login-wrapper {
  margin: 4vh auto !important;
  width: 380px !important;
  max-width: 92vw !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
  position: relative !important;
  z-index: 1 !important;
}

/* --- Logo ANTIC compact (l'image de marque est rendue en "fullWidth") --- */
.login-wrapper img {
  max-height: 80px !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto 0.5rem !important;
}

/* --- Texte sombre + lisible sur la carte blanche (corrige blanc sur blanc) --- */
.login-wrapper,
.login-wrapper .euiText,
.login-wrapper p,
.login-wrapper span,
.login-wrapper label,
.login-wrapper .euiFormLabel {
  color: #0b1f3a !important;
}

/* Titre + sous-titre : compacts et lisibles (bleu ANTIC) */
.login-wrapper .euiText {
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.4rem !important;
  color: #210e9b !important;
}

/* Espacements verticaux reduits */
.login-wrapper .euiSpacer {
  height: 8px !important;
}
