/* PRATINIUM v237 — Auth real alignment patch
   Correctifs ciblés :
   1) le bandeau titre et le cadran principal deviennent un seul bloc visuel ;
   2) sur desktop, les champs E-mail / Mot de passe reviennent immédiatement à droite des libellés. */

body#authentication #wrapper{
  padding-top:12px!important;
}

body#authentication .page-header{
  width:100%!important;
  max-width:1120px!important;
  margin:0 auto 0!important;
  border:1px solid rgba(9,23,51,.10)!important;
  border-bottom:0!important;
  border-radius:22px 22px 0 0!important;
  box-shadow:none!important;
}

body#authentication #content{
  width:100%!important;
  max-width:1120px!important;
  margin:0 auto 42px!important;
  border:1px solid rgba(9,23,51,.10)!important;
  border-top:0!important;
  border-radius:0 0 22px 22px!important;
  box-shadow:0 18px 48px rgba(9,23,51,.08)!important;
}

@media (min-width:992px){
  body#authentication #content{
    padding:34px 30px 34px!important;
    display:grid!important;
    grid-template-columns:minmax(0,610px) minmax(0,410px)!important;
    column-gap:34px!important;
    align-items:center!important;
  }

  body#authentication .login-form,
  body#authentication form#login-form,
  body#authentication #login-form{
    width:100%!important;
    max-width:610px!important;
    justify-self:start!important;
    padding:34px 38px 28px!important;
  }

  /* Force le vrai placement label + champ sur la même ligne */
  body#authentication .login-form .form-group,
  body#authentication .login-form .form-group.row,
  body#authentication form#login-form .form-group,
  body#authentication form#login-form .form-group.row,
  body#authentication #login-form .form-group,
  body#authentication #login-form .form-group.row{
    display:grid!important;
    grid-template-columns:132px minmax(0,360px)!important;
    column-gap:18px!important;
    align-items:center!important;
    width:100%!important;
    max-width:510px!important;
    margin:0 auto 20px!important;
  }

  body#authentication .login-form .form-control-label,
  body#authentication form#login-form .form-control-label,
  body#authentication #login-form .form-control-label,
  body#authentication .login-form label,
  body#authentication form#login-form label,
  body#authentication #login-form label{
    grid-column:1!important;
    width:132px!important;
    max-width:132px!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    justify-self:start!important;
    align-self:center!important;
  }

  body#authentication .login-form .form-group > div,
  body#authentication form#login-form .form-group > div,
  body#authentication #login-form .form-group > div,
  body#authentication .login-form .form-group > .col-md-6,
  body#authentication form#login-form .form-group > .col-md-6,
  body#authentication #login-form .form-group > .col-md-6,
  body#authentication .login-form .form-group > .col-md-9,
  body#authentication form#login-form .form-group > .col-md-9,
  body#authentication #login-form .form-group > .col-md-9{
    grid-column:2!important;
    width:360px!important;
    max-width:360px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    justify-self:start!important;
  }

  body#authentication .login-form input.form-control,
  body#authentication form#login-form input.form-control,
  body#authentication #login-form input.form-control,
  body#authentication .login-form input[type=email],
  body#authentication .login-form input[type=password],
  body#authentication form#login-form input[type=email],
  body#authentication form#login-form input[type=password],
  body#authentication #login-form input[type=email],
  body#authentication #login-form input[type=password]{
    width:360px!important;
    max-width:360px!important;
    margin:0!important;
  }

  body#authentication .login-form .input-group,
  body#authentication form#login-form .input-group,
  body#authentication #login-form .input-group{
    width:360px!important;
    max-width:360px!important;
    margin:0!important;
  }

  /* Les liens et bouton restent centrés sous les deux champs dans la carte */
  body#authentication .forgot-password,
  body#authentication .form-footer,
  body#authentication footer.form-footer,
  body#authentication .submit{
    max-width:510px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }

  body#authentication .register-form,
  body#authentication #content>.register-form,
  body#authentication #content>.pratinium-auth-side,
  body#authentication #content>.auth-side,
  body#authentication #content>section:not(.login-form):not(#login-form),
  body#authentication #content>div:not(.login-form):not(#login-form):not(.page-content){
    grid-column:2!important;
    max-width:410px!important;
    justify-self:start!important;
  }
}
