/* PRATINIUM v272 — Authentication : réduire l'espace vertical entre formulaire et footer

   Base : v271 REAL.
   Objectif : rapprocher le footer du bloc de connexion sur la page Connexion
   uniquement, sans toucher au cadran du formulaire ni aux onglets E-mail/Téléphone.
*/

@media (min-width: 992px){
  body#authentication #wrapper,
  body#authentication #wrapper > .container,
  body#authentication #content-wrapper,
  body#authentication #main,
  body#authentication #content,
  body#authentication .page-content{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  /* Réduction de l'espace libre sous le bloc de connexion. */
  body#authentication section.login-form,
  body#authentication section.login-form:has(> form#login-form),
  body#authentication form#login-form,
  body#authentication form.pratinium-phone-main-form,
  body#authentication form.pl-phone-login-form{
    margin-bottom: 0 !important;
  }

  /* Si le layout d'authentification force une grande hauteur, on le compacte. */
  body#authentication .pratinium-auth-layout,
  body#authentication .pratinium-auth-shell,
  body#authentication .pratinium-auth-grid,
  body#authentication .authentication-layout,
  body#authentication .authentication-wrapper,
  body#authentication .login-page,
  body#authentication .login-container,
  body#authentication .login-content,
  body#authentication .login-row,
  body#authentication .auth-row{
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* On conserve un petit souffle premium avant le footer, mais sans grand vide. */
  body#authentication #main::after,
  body#authentication #content::after{
    content: none !important;
    display: none !important;
  }

  body#authentication footer,
  body#authentication #footer,
  body#authentication .footer-container{
    margin-top: 18px !important;
  }
}

@media (max-width: 991.98px){
  body#authentication #wrapper,
  body#authentication #content-wrapper,
  body#authentication #main,
  body#authentication #content,
  body#authentication .page-content{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  body#authentication footer,
  body#authentication #footer,
  body#authentication .footer-container{
    margin-top: 14px !important;
  }
}
