/* PRATINIUM v243 — Authentication layout: header-width card + wider left form
   Built on v238. This file is loaded last and only affects body#authentication. */

body#authentication #wrapper{
  padding-top:38px!important; /* espace visible entre le header global et le bloc connexion */
  padding-left:0!important;
  padding-right:0!important;
}

body#authentication #wrapper>.container,
body#authentication main>.container,
body#authentication #content-wrapper,
body#authentication #main{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:14px!important;
  padding-right:14px!important;
  box-sizing:border-box!important;
}

/* Bandeau titre et cadran principal : même largeur, même axe, comme le header */
body#authentication .page-header,
body#authentication #content{
  width:calc(100vw - 28px)!important;
  max-width:calc(100vw - 28px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

body#authentication .page-header{
  margin-top:0!important;
  margin-bottom:0!important;
  border-radius:22px 22px 0 0!important;
  border:1px solid rgba(9,23,51,.10)!important;
  border-bottom:0!important;
  padding-left:52px!important;
  padding-right:52px!important;
}

body#authentication #content{
  margin-top:0!important;
  border-radius:0 0 22px 22px!important;
  border:1px solid rgba(9,23,51,.10)!important;
  border-top:0!important;
  overflow:hidden!important;
}

@media (min-width:992px){
  body#authentication #content{
    padding:84px 62px 64px!important;
    display:grid!important;
    grid-template-columns:minmax(720px, 1.32fr) minmax(360px, .78fr)!important; /* gauche élargi, droite réduit */
    column-gap:44px!important;
    align-items:center!important;
  }

  /* Bloc gauche plus large, sans découpe interne */
  body#authentication .login-form,
  body#authentication form#login-form,
  body#authentication #login-form{
    grid-column:1!important;
    width:100%!important;
    max-width:760px!important;
    min-width:0!important;
    justify-self:start!important;
    padding:36px 48px 32px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  body#authentication .page-content,
  body#authentication .login-form .page-content,
  body#authentication form#login-form .page-content,
  body#authentication #login-form .page-content{
    overflow:visible!important;
  }

  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:138px minmax(0,1fr)!important;
    column-gap:20px!important;
    align-items:center!important;
    width:100%!important;
    max-width:560px!important;
    margin:0 auto 20px!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:visible!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:138px!important;
    max-width:138px!important;
    min-width:138px!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    justify-self:start!important;
    white-space:nowrap!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:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    justify-self:stretch!important;
    box-sizing:border-box!important;
    overflow:visible!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],
  body#authentication .login-form .input-group,
  body#authentication form#login-form .input-group,
  body#authentication #login-form .input-group{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  body#authentication .input-group .form-control{
    width:100%!important;
    max-width:100%!important;
    padding-right:54px!important;
  }

  body#authentication .forgot-password,
  body#authentication .form-footer,
  body#authentication footer.form-footer,
  body#authentication .submit{
    max-width:560px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }

  /* Bloc droit resserré et maintenu dans son espace */
  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;
    width:100%!important;
    max-width:420px!important;
    justify-self:center!important;
    box-sizing:border-box!important;
  }
}

@media (max-width:991px){
  body#authentication #wrapper{padding-top:24px!important;}
  body#authentication .page-header,
  body#authentication #content{
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
  }
  body#authentication #content{padding:24px 14px 32px!important;}
}
