/* GLPI 11.0.11 — ENA Support • CSS public, sans plugin
   Palette modifiable ci-dessous. Les couleurs sont provisoires. */
:root {
  --ena-blue: #377cf5;
  --ena-blue-hover: #2467df;
  --ena-dark: #0d1c3a;
  --ena-text: #14213c;
  --ena-muted: #65718a;
  --ena-border: #d5dbe7;
}

/* Limitations strictes à l'écran de connexion : autres pages anonymes intactes. */
body.welcome-anonymous:has(.ena-login-form) {
  background: #f8f9fc !important;
  color: var(--ena-text);
  min-height: 100vh;
}
body.welcome-anonymous:has(.ena-login-form) main.page-anonymous {
  min-height: 100vh;
  display: block !important;
}
body.welcome-anonymous:has(.ena-login-form) main.page-anonymous > .flex-fill {
  margin: 0 0 0 50% !important;
  width: 50%;
  min-height: 100vh;
  padding: 3rem 5vw !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  align-items: center;
  background: #f8f9fc;
}
body.welcome-anonymous:has(.ena-login-form) .container-tight {
  max-width: 530px !important;
  width: 100%;
  padding: 0 !important;
  margin: auto !important;
}
/* Le logo natif au-dessus de la carte est remplacé par le logo DANS la carte. */
body.welcome-anonymous:has(.ena-login-form) .container-tight > .text-center:first-child,
body.welcome-anonymous:has(.ena-login-form) .main-content-card > .card-header { display: none !important; }
body.welcome-anonymous:has(.ena-login-form) .main-content-card {
  background: #fff;
  border: 1px solid rgba(25, 50, 90, .04);
  border-radius: 19px;
  overflow: visible;
  box-shadow: 0 17px 32px rgba(13, 28, 58, .11);
}
body.welcome-anonymous:has(.ena-login-form) .main-content-card > .card-body { padding: 34px 38px 38px !important; }

/* Volet gauche : ajouter la photographie en plaçant un JPG sur le serveur
   puis en activant la ligne url('/pics/ena-login-background.jpg') ci-dessous. */
.ena-hero {
  position: fixed;
  inset: 0 auto 0 0;
  width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 4rem 2.5rem 2rem;
  color: #fff;
  text-align: center;
  background-color: #0c1936;
  background-image:
    linear-gradient(115deg, rgba(10, 22, 49, .91), rgba(10, 20, 45, .80)),
    url('/pics/ena-login-background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}
.ena-hero::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 3px;
  background: linear-gradient(to bottom,#f3cb45,#dca937);
  opacity: .72;
}
.ena-hero-center { position: relative; z-index: 1; margin-top: -1.6rem; }
.ena-hero-monogram { display: block; font-weight: 800; line-height: 1; font-size: clamp(3rem,6vw,5.4rem); margin-bottom: 22px; letter-spacing: -.07em; }
.ena-hero-monogram::first-letter { color: #fff; }
.ena-hero-center h2 { color: #fff; font-size: clamp(2.15rem,3vw,3rem); font-weight: 750; letter-spacing: -.03em; margin: 0 0 22px; }
.ena-hero-center p { color: rgba(255,255,255,.85); font-size: clamp(.95rem,1.36vw,1.22rem); line-height: 1.6; margin: 0; }
.ena-hero-bottom { position: absolute; bottom: 24px; left: 14px; right: 14px; font-size: 12px; color: rgba(255,255,255,.76); }

.ena-form-brand { text-align: center; margin-bottom: 30px; }
.ena-login-logo { display: block; max-width: 195px; max-height: 68px; width: auto; height: auto; object-fit: contain; margin: 0 auto 18px; }
.ena-form-brand h1 { font-size: 1.6rem; font-weight: 750; color: var(--ena-text); margin: 0; }
.ena-form-brand p { font-size: .86rem; color: var(--ena-muted); margin: 12px 0 0; }
.ena-login-form .ena-field { margin-bottom: 20px; }
.ena-login-form .form-label { display: block; font-size: .94rem; font-weight: 550; color: var(--ena-text); margin-bottom: 8px; }
.ena-input-wrap { position: relative; }
.ena-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #4e5b74; font-size: 19px; pointer-events: none; }
.ena-login-form .ena-input-wrap > .form-control {
  height: 50px;
  min-height: 50px;
  border: 1px solid var(--ena-border);
  border-radius: 11px;
  padding: 10px 44px;
  font-size: 15px;
  background: #fff;
  box-shadow: none;
  color: var(--ena-text);
}
.ena-login-form .form-control:focus { border-color: var(--ena-blue); box-shadow: 0 0 0 3px rgba(55,124,245,.15); }
.ena-login-form .form-control::placeholder { color: #9ba5b8; }
.ena-show-password { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #64748b; padding: 5px; border-radius: 5px; }
.ena-show-password:focus-visible { outline: 2px solid var(--ena-blue); outline-offset: 2px; }
.ena-show-password i { font-size: 20px; }
.ena-login-options { display:flex; align-items: center; justify-content: space-between; flex-wrap:wrap; gap: 10px; margin: 5px 0 22px; font-size: 13px; }
.ena-login-options .form-check { margin: 0; }
.ena-login-options .form-check-input:checked { background-color: var(--ena-blue); border-color: var(--ena-blue); }
.ena-lost-password { color: var(--ena-blue); text-decoration: none; font-size: 13px; }
.ena-lost-password:hover { text-decoration: underline; }
.ena-login-form .ena-submit { width:100%; min-height:50px; border-radius:11px; background: var(--ena-blue) !important; border:1px solid var(--ena-blue) !important; color: #fff !important; font-weight: 650; font-size: 16px; }
.ena-login-form .ena-submit:hover { background: var(--ena-blue-hover) !important; border-color: var(--ena-blue-hover) !important; }
.ena-public-faq { text-align: center; margin-top: 15px; }
.ena-login-message { margin-bottom: 18px; }
.ena-extra-auth { margin-top: 18px; }
.ena-footer-credit { display: block; font-size: 10px; line-height: 1.4; opacity: .75; }
body.welcome-anonymous:has(.ena-login-form) .container-tight > .text-muted { margin-top: 18px !important; }

@media (max-width: 980px) {
  .ena-hero { display: none; }
  body.welcome-anonymous:has(.ena-login-form) main.page-anonymous > .flex-fill {
    margin-left: 0 !important; width: 100%; padding: 25px 18px !important;
  }
  body.welcome-anonymous:has(.ena-login-form) .container-tight { max-width: 530px !important; }
}
@media (max-width: 540px) {
  body.welcome-anonymous:has(.ena-login-form) .main-content-card > .card-body { padding: 28px 21px 29px !important; }
  .ena-form-brand { margin-bottom: 24px; }
  .ena-login-logo { max-width: 170px; }
  .ena-login-options { align-items:flex-start; }
}

/* ================================================
   ENA-RDC — PERSONNALISATION FINALE
   ================================================ */

/* Image institutionnelle et dégradé bleu */
.ena-hero {
    background-color: #071631 !important;
    background-image:
        linear-gradient(
            135deg,
            rgba(4, 15, 40, 0.91) 0%,
            rgba(16, 48, 105, 0.76) 48%,
            rgba(5, 19, 49, 0.92) 100%
        ),
        url('/pics/ena-login-background.jpg?v=20261022c') !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Logo officiel ENA à gauche */
.ena-hero-logo {
    display: block;
    width: 230px;
    max-width: 80%;
    max-height: 115px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 25px;
    filter: brightness(0) invert(1);
}

/* Titre ENA Support */
.ena-hero-center h2 {
    color: #ffffff !important;
    font-size: clamp(2.1rem, 3vw, 3rem);
    font-weight: 750;
    margin-bottom: 18px;
}

/* Sous-titre */
.ena-hero-center p {
    color: rgba(255,255,255,0.91);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Ligne institutionnelle jaune */
.ena-hero::after {
    width: 3px;
    background: linear-gradient(
        to bottom,
        #f6d558,
        #dca937
    );
}

/* Footer sous le formulaire */
.ena-footer-credit {
    display: inline-block;
    color: #65718a !important;
    font-size: 12px !important;
    font-weight: 500;
    text-decoration: none !important;
    opacity: 1 !important;
    margin-top: 8px;
}

.ena-footer-credit:hover {
    color: #377cf5 !important;
    text-decoration: underline !important;
}

/* Adaptation aux petits écrans */
@media (max-width: 980px) {
    .ena-hero {
        display: none !important;
    }
}
/* Logo ENA en couleur sur le formulaire blanc */

.ena-form-brand .ena-login-logo {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 95px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px;

    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal;
}

/* Conserver le logo blanc sur le panneau bleu */

.ena-hero .ena-hero-logo {
    max-width: 230px;
    max-height: 115px;
}

/* Logo officiel ENA en couleur sur fond blanc */

.ena-form-brand .ena-login-logo {
    display: block;
    width: 290px;
    max-width: 90%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto 24px;
    filter: none !important;
    opacity: 1 !important;
}
