/* PRATINIUM v274 — Authentication : réduire réellement l'espace à droite dans le cadran

   Base : v273. Objectif : le cadran du formulaire de connexion doit serrer
   davantage les champs à droite, sans modifier les onglets E-mail/Téléphone,
   le lien de création de compte ni le footer.

   Correction renforcée : on ne dépend pas uniquement de :has(), afin que la
   règle s'applique même si le DOM PrestaShop/module change légèrement.
*/

@media (min-width: 992px){
  body#authentication section.login-form,
  body#authentication .page-content section.login-form,
  body#authentication #content section.login-form,
  body#authentication .login-form:has(> form#login-form),
  body#authentication .login-form:has(> form.pratinium-phone-main-form),
  body#authentication .login-form:has(> form.pl-phone-login-form){
    box-sizing: border-box !important;
    width: 640px !important;
    max-width: 640px !important;
    min-width: 0 !important;
    padding: 48px 42px 44px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid rgba(15,35,70,.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 26px 70px rgba(15,35,70,.08) !important;
    overflow: visible !important;
  }

  body#authentication section.login-form > form#login-form,
  body#authentication section.login-form > form.pratinium-phone-main-form,
  body#authentication section.login-form > form.pl-phone-login-form,
  body#authentication .login-form > form#login-form,
  body#authentication .login-form > form.pratinium-phone-main-form,
  body#authentication .login-form > form.pl-phone-login-form{
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 556px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Évite qu'un ancien cadran vide ou un conteneur externe reprenne une largeur supérieure. */
  body#authentication section.login-form:empty,
  body#authentication section.login-form[hidden],
  body#authentication section.login-form[style*="display: none"]{
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body#authentication div#content.page-content.card.card-block,
  body#authentication #content.card,
  body#authentication .card.card-block#content{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 991.98px){
  body#authentication section.login-form,
  body#authentication .login-form{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
