/* PRATINIUM v298 — Password recovery card layout match
   Objectif : faire correspondre les éléments encadrés de la page récupération
   au style/disposition fintech premium validé précédemment. Scope: page mot de passe oublié uniquement. */

body#password #content,
body#password div#content.page-content,
body.page-password #content,
body.page-password div#content.page-content,
body[class*="password"] #content,
body[class*="password"] div#content.page-content{
  padding:34px 38px 30px!important;
  background:rgba(255,255,255,.88)!important;
}

/* Bloc explicatif premium, compact et centré comme sur la référence */
body#password #content > p,
body#password .page-content > p,
body.page-password #content > p,
body.page-password .page-content > p,
body[class*="password"] #content > p,
body[class*="password"] .page-content > p{
  width:100%!important;
  max-width:880px!important;
  margin:0 auto 24px!important;
  padding:20px 28px!important;
  border:1px solid rgba(18,168,232,.22)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,rgba(18,168,232,.095),rgba(255,255,255,.78) 44%,rgba(247,200,75,.13))!important;
  color:#344563!important;
  font-size:16px!important;
  line-height:1.48!important;
  font-weight:800!important;
  text-align:center!important;
  box-shadow:0 18px 44px rgba(7,21,47,.055)!important;
}

/* Grand cadran interne autour du formulaire, comme la capture de référence */
body#password form,
body#password .forgotten-password form,
body.page-password form,
body.page-password .forgotten-password form,
body[class*="password"] form,
body[class*="password"] .forgotten-password form{
  width:100%!important;
  max-width:880px!important;
  min-height:176px!important;
  margin:0 auto!important;
  padding:80px 28px 30px!important;
  position:relative!important;
  border:1px solid rgba(18,168,232,.24)!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 22px 60px rgba(7,21,47,.08)!important;
}

/* Bande formulaire alignée et superposée proprement dans le cadran */
body#password form .form-group,
body.page-password form .form-group,
body[class*="password"] form .form-group{
  display:grid!important;
  grid-template-columns:160px minmax(260px,1fr) 310px!important;
  gap:20px!important;
  align-items:center!important;
  width:calc(100% + 96px)!important;
  max-width:1040px!important;
  margin:0 0 0 -48px!important;
  padding:18px 28px!important;
  border:1px solid rgba(15,35,70,.10)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  box-shadow:0 20px 56px rgba(7,21,47,.105)!important;
}

body#password form .form-control-label,
body#password form label,
body.page-password form .form-control-label,
body.page-password form label,
body[class*="password"] form .form-control-label,
body[class*="password"] form label{
  margin:0!important;
  text-align:center!important;
  color:#07152f!important;
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:900!important;
}

body#password form input[type="email"],
body#password form input[type="text"],
body#password form .form-control,
body.page-password form input[type="email"],
body.page-password form input[type="text"],
body.page-password form .form-control,
body[class*="password"] form input[type="email"],
body[class*="password"] form input[type="text"],
body[class*="password"] form .form-control{
  width:100%!important;
  min-height:48px!important;
  height:48px!important;
  border-radius:15px!important;
  background:#fbfdff!important;
}

body#password form .btn-primary,
body#password form button[type="submit"],
body.page-password form .btn-primary,
body.page-password form button[type="submit"],
body[class*="password"] form .btn-primary,
body[class*="password"] form button[type="submit"]{
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  height:52px!important;
  padding:0 18px!important;
  border-radius:16px!important;
  font-size:13px!important;
  line-height:1.12!important;
  white-space:normal!important;
  text-align:center!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

@media (max-width:991px){
  body#password #content,
  body.page-password #content,
  body[class*="password"] #content{padding:26px 16px 28px!important;}

  body#password #content > p,
  body#password .page-content > p,
  body.page-password #content > p,
  body.page-password .page-content > p,
  body[class*="password"] #content > p,
  body[class*="password"] .page-content > p{
    margin-bottom:20px!important;
    padding:17px 18px!important;
    font-size:14px!important;
  }

  body#password form,
  body#password .forgotten-password form,
  body.page-password form,
  body.page-password .forgotten-password form,
  body[class*="password"] form,
  body[class*="password"] .forgotten-password form{
    min-height:0!important;
    padding:22px 16px!important;
    border-radius:22px!important;
  }

  body#password form .form-group,
  body.page-password form .form-group,
  body[class*="password"] form .form-group{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:18px!important;
  }

  body#password form .form-control-label,
  body.page-password form .form-control-label,
  body[class*="password"] form .form-control-label{
    display:block!important;
    margin-bottom:10px!important;
    text-align:left!important;
  }

  body#password form .btn-primary,
  body#password form button[type="submit"],
  body.page-password form .btn-primary,
  body.page-password form button[type="submit"],
  body[class*="password"] form .btn-primary,
  body[class*="password"] form button[type="submit"]{
    margin-top:14px!important;
    width:100%!important;
  }
}
