/*****************************************************************************************************************************/
/* MODALE RESET PASSWORD - harmonisee sur le gabarit de modal_login.css                                                       */
/*****************************************************************************************************************************/
input:focus             {outline:none;}
#body-reset-password    {width: 100%; height: 100%;}

#modal-overlay{
position: fixed;
top: 110px;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
overflow-x: hidden;
user-select: none;
z-index: 4;}

#modal{
opacity: 0;
animation: modal-login-appear 0.35s ease forwards;}

@keyframes modal-login-appear{
from{ opacity: 0; }
to{ opacity: 1; }}

/* Header : logo abaisse pour chevaucher la fenetre */
#header-modal{
text-align: center;
padding-bottom: 0;}

#header-modal #m3ddjpg{
position: relative;
z-index: 4;
width: 110px;
border-radius: 60px;
margin-bottom: -42px;
box-shadow: 0 18px 40px rgba(0,0,0,0.55);}

/* Fenetre : glassmorphisme identique a #window-login */
#content-modal{
position: relative;
box-sizing: border-box;
width: 380px;
padding: 0 0 8px 0;
background-color: #2929293b;
backdrop-filter: blur(26px) saturate(102%);
-webkit-backdrop-filter: blur(26px) saturate(102%);
border: 1px solid rgba(255,255,255,0.09);
border-radius: 20px;

box-shadow:
inset 0 1px 0 rgba(255,255,255,0.16),
inset 0 -1px 0 rgba(0,0,0,0.30),
0 40px 80px rgba(0,0,0,0.55),
0 12px 28px rgba(0,0,0,0.35);}

/* Reflet diagonal oriente comme la lumiere du fond */
#content-modal::before{
content: "";
position: absolute;
inset: 0;
border-radius: 20px;
pointer-events: none;
background: linear-gradient(118deg,
rgba(255,255,255,0.075) 0%,
rgba(255,255,255,0.02) 26%,
transparent 52%);
z-index: 1;}

/* Le formulaire passe au-dessus du reflet et porte l'espace
   du logo, comme #form-login. */
#content-modal form{
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
box-sizing: border-box;
width: 100%;
padding: 68px 22px 6px 22px;}

/* Labels : gabarit .lbl-login */
.label-reset{
display: block;
font-size: 11.5px;
letter-spacing: 1px;
text-transform: uppercase;
color: #adadad;
font-weight: 600;
margin-top: 0;
margin-bottom: 8px;
text-align: left;}

/* Champs : gabarit input du login.
   Les conteneurs #first-input / #snd-input portent la classe .field-login
   has-icon : position, icone, croix d'effacement et focus viennent de
   modal_login.css. Seule la reserve de place a gauche reste ici. */
.input-reset{
width: 100%;
box-sizing: border-box;
margin-top: 0;
margin-bottom: 0;
padding-left: 36px;}

#first-input,
#snd-input{
margin-bottom: 20px;}

/* Bouton : gabarit du bouton .valid du login */
.button-reset{
width: 100%;
box-sizing: border-box;
margin-top: 10px;
margin-bottom: 0;
padding: 12px 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
font-size: 15px;
font-weight: 600;}

.button-reset:hover{
background-color: #0d8bff;
transform: translateY(-1px);}

.button-reset:active{
transform: translateY(0);}

/* Croix de fermeture : meme gabarit que .close-btn du login.
   Les regles sont reprises ici pour rester correctes meme si
   l'element ne porte pas la classe .close-btn. */
#close-reset{
position: absolute;
top: 11px;
right: 7px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 36px;
line-height: 1;
color: #aaaaaa;
font-family: Arial, Helvetica, sans-serif;
padding: 0;
border-radius: 10px;
transition: background-color 0.18s ease, color 0.18s ease;
z-index: 6;}

#close-reset:hover{
color: white;
background-color: rgba(255,255,255,0.10);}

/* Message d'erreur sous le bouton */
#reset-status{
margin: 14px 0 0;}


/* MOBILES en mode portrait */
@media (max-width: 600px) and (orientation: portrait) 
{
    #modal-overlay{
    position: sticky;
    top: 0;
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    align-items: flex-start;}

    #header-modal #m3ddjpg{
    margin-top: 14px;
    margin-bottom: -44px;}

    #content-modal{
    width: 340px;
    padding: 0 0 8px 0;
    font-size: 15px;}

    #content-modal form{
    padding: 54px 22px 6px 22px;}

    #close-reset{
    font-size: 30px;}
}

/* MOBILES en mode paysage */
@media (max-width: 1000px) and (orientation: landscape) 
{
    #modal-overlay{
    position: sticky;
    top: 0;
    justify-content: center;
    width: 100%;
    padding-top: 30px;
    align-items: flex-start;}

    #header-modal{
    padding-bottom: 0;}

    #header-modal #m3ddjpg{
    margin-bottom: -44px;}

    #content-modal{
    width: 340px;
    padding: 0 0 8px 0;
    font-size: 15px;}

    #content-modal form{
    padding: 54px 22px 6px 22px;}

    #close-reset{
    font-size: 28px;}
}