/* FormaFlow 1.8 — Authentification, styles isolés des écrans applicatifs */
body:not(.authenticated):has(#authBox:not(.hidden)),body.ff-reset-body{--ff-auth-navy:#08163d;--ff-auth-muted:#607397;--ff-auth-blue:#075cf2;background:radial-gradient(ellipse at 12% 78%,#dbeaff 0,transparent 40%),radial-gradient(ellipse at 90% 8%,#dceafe 0,transparent 40%),linear-gradient(160deg,#f5faff,#e8f3ff)!important;min-height:100vh;color:var(--ff-auth-navy)!important}
body:not(.authenticated):has(#authBox:not(.hidden)) main{max-width:960px;padding:32px 20px 90px}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header, .ff-reset-header{text-align:center;padding:12px 0 25px}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1,.ff-reset-header h1{font-size:clamp(32px,5vw,46px);letter-spacing:-1.6px;color:#071638;margin:8px 0 13px}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header small,.ff-reset-header small{font-size:15px;letter-spacing:0;color:#627393;font-weight:600}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header p,.ff-reset-header p{font-size:clamp(15px,2vw,19px);line-height:1.5;color:#607397;margin:0}
body:not(.authenticated):has(#authBox:not(.hidden)) #home{background:transparent;border:0;box-shadow:none;padding:0;margin:0}
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox,.ff-reset-card{width:min(100%,650px);max-width:650px;margin:18px auto 0;padding:clamp(26px,5vw,48px);border-radius:30px;background:#fff;box-shadow:0 22px 70px #3977c014;border:1px solid #edf3ff;text-align:center}
.ff-auth-icon,.ff-reset-icon{display:grid;place-items:center;width:72px;height:72px;border-radius:21px;background:#eaf3ff;color:#0862ec;margin:0 auto 18px;font-size:35px}
body:not(.authenticated):has(#authBox:not(.hidden)) #authHeading,.ff-reset-card h2{font-size:clamp(26px,4vw,34px)!important;letter-spacing:-1px;color:#08163d;margin:0 0 10px;font-weight:800}
.ff-auth-subtitle,.ff-reset-subtitle{color:#627494;font-size:clamp(15px,2vw,18px);line-height:1.5;margin:0 auto 30px;max-width:500px}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginForm{gap:0;text-align:left}
.ff-auth-field{margin-bottom:20px}
.ff-auth-field>label,.ff-reset-card form>label{display:block;font-size:16px;font-weight:700;color:#0a1737;margin:0 0 10px;text-align:left}
.ff-auth-input-row{position:relative;display:flex;align-items:center}
.ff-auth-input-icon{position:absolute;left:17px;z-index:1;color:#607397;font-size:24px;pointer-events:none}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row input{width:100%;min-height:55px;padding:13px 50px 13px 52px!important;border:1.5px solid #cbd9f0;border-radius:13px;background:#fff;color:#102044;font-size:17px}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row .ff-password-wrap{width:100%;max-width:none}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-password-eye{right:9px!important;color:#50658c!important}
body:not(.authenticated):has(#authBox:not(.hidden)) #rememberLabel{display:flex;align-items:center;gap:10px;margin:0 0 22px;font-size:16px;font-weight:500;color:#101b3b;text-align:left}
body:not(.authenticated):has(#authBox:not(.hidden)) #rememberEmail{width:21px;height:21px;accent-color:#0b61ed;flex:none;margin:0}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginButton,.ff-reset-submit,.ff-success-btn{display:block;width:100%;padding:17px 20px!important;min-height:59px;border:0;border-radius:13px;background:#0862f2!important;color:white!important;font-size:19px;font-weight:750;text-align:center;text-decoration:none;box-shadow:0 14px 26px #1465ec22}
.ff-auth-forgot{text-align:center;margin:24px 0 0}
.ff-auth-divider{display:flex;align-items:center;gap:20px;color:#6a7c9d;margin:0 0 20px;font-size:15px}
.ff-auth-divider:before,.ff-auth-divider:after{content:'';height:1px;flex:1;background:#d7e3f2}
body:not(.authenticated):has(#authBox:not(.hidden)) #forgotPassword{background:transparent!important;color:#0862f2!important;box-shadow:none;font-size:17px;padding:7px}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginInfo:empty{display:none}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginInfo{margin:15px auto;color:#64748b}
/* Reset password and success screens */
body.ff-reset-body{margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
.ff-reset-shell{max-width:960px;margin:0 auto;padding:32px 20px 85px}
.ff-reset-card{max-width:690px;text-align:left}
.ff-reset-card #resetIntro{text-align:center}
.ff-reset-card .pw{position:relative;margin-bottom:22px}
.ff-reset-card .pw input{box-sizing:border-box;width:100%;min-height:56px;border:1.5px solid #cbd9f0;border-radius:13px;background:#fff;padding:13px 54px 13px 51px;font:inherit;font-size:17px;color:#101b3b}
.ff-reset-card .pw input::placeholder{color:#7183a2}
.ff-reset-card .ff-lock{position:absolute;left:17px;top:14px;font-size:22px;color:#607397;pointer-events:none}
.ff-reset-card .pw button{position:absolute;right:7px;top:7px;width:42px;height:42px;border:0;background:transparent;color:#52678b;cursor:pointer;font-size:19px}
.ff-reset-card .meter{height:9px;background:#e4eaf2;border-radius:9px;overflow:hidden;margin-top:-8px}
.ff-reset-card .meter>div{height:100%;width:0;transition:.15s}
.ff-reset-card #strengthLabel{color:#506280;font-size:14px;line-height:1.5;margin:9px 0}
.ff-reset-card #rules{font-size:15px;line-height:1.8;margin:12px 0 25px;color:#607397}
.ff-reset-card .ff-reset-submit{margin-top:25px;cursor:pointer}
.ff-reset-return{border-top:1px solid #d7e3f2;text-align:center;margin-top:28px;padding-top:20px}
.ff-reset-return a{color:#0862f2;font-weight:700;text-decoration:none}
.ff-reset-card #msg{font-size:15px;font-weight:600;margin:14px 0}
.ff-reset-card #msg:empty{display:none}
#resetSuccess,#activationSuccess{text-align:center;padding:20px 0 12px}
#resetSuccess[hidden],#resetIntro[hidden],#f[hidden]{display:none!important}
.ff-success-icon{display:grid;place-items:center;width:150px;height:150px;margin:0 auto 32px;border-radius:50%;background:#e3f9eb;color:#0b9d46;font-size:92px;font-weight:700}
#resetSuccess p,#activationSuccess p{font-size:19px;line-height:1.55;color:#5c7094;margin:24px auto 40px;max-width:510px}
.ff-success-btn{max-width:470px;margin:0 auto}
@media(max-width:600px){body:not(.authenticated):has(#authBox:not(.hidden)) main,.ff-reset-shell{padding:24px 14px 65px}body:not(.authenticated):has(#authBox:not(.hidden)) #authBox,.ff-reset-card{padding:30px 22px;border-radius:25px}body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header,.ff-reset-header{padding-bottom:22px}.ff-auth-subtitle,.ff-reset-subtitle{margin-bottom:25px}.ff-success-icon{width:120px;height:120px;font-size:76px}#resetSuccess p,#activationSuccess p{font-size:16px}}

/* UX-59 — alignement sur la maquette mobile du formateur */
body:not(.authenticated):has(#authBox:not(.hidden)){overflow-x:hidden}
body:not(.authenticated):has(#authBox:not(.hidden)) main{position:relative;isolation:isolate}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header{position:relative;z-index:0}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header p{position:relative;z-index:1}
.ff-auth-decor{position:absolute;inset:-25px -30px -110px;pointer-events:none;overflow:visible;z-index:0;color:#9abffb}
.ff-decor-book,.ff-decor-cap{position:absolute;font-size:clamp(46px,8vw,100px);opacity:.35;filter:drop-shadow(5px 6px 0 #d2e3ff)}
.ff-decor-book{left:0;top:45px;transform:rotate(-18deg)}
.ff-decor-cap{right:0;top:115px;transform:rotate(13deg)}
.ff-decor-dot{position:absolute;width:13px;height:13px;border-radius:50%;background:#a8caff;opacity:.9}
.ff-decor-dot.dot-a{top:22px;left:8%}.ff-decor-dot.dot-b{top:130px;right:7%}.ff-decor-dot.dot-c{bottom:8px;right:9%}
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox{position:relative;z-index:1}
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox .ff-auth-icon{width:62px;height:62px;border-radius:17px;font-size:27px;margin-bottom:16px}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row input{font-weight:400!important;background:#fff!important;box-shadow:none!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row input:-webkit-autofill,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row input:-webkit-autofill:hover,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #fff inset!important;box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:#102044!important;transition:background-color 9999s ease-out}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-field>label{font-weight:600;font-size:15px}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginInfo:empty{display:none!important}
@media(max-width:600px){
body:not(.authenticated):has(#authBox:not(.hidden)) main{padding:14px 16px 55px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header{padding:4px 0 10px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1{font-size:clamp(24px,7vw,30px)!important;letter-spacing:-.8px!important;margin:4px 0 8px!important;line-height:1.2}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1 small{font-size:11px!important;letter-spacing:0!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header p{font-size:13px!important;line-height:1.45!important;max-width:300px;margin:0 auto!important}
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox{margin:14px auto 0!important;padding:24px 20px 30px!important;border-radius:23px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox .ff-auth-icon{width:50px;height:50px;font-size:23px;border-radius:13px;margin-bottom:13px}
body:not(.authenticated):has(#authBox:not(.hidden)) #authHeading{font-size:clamp(23px,6.3vw,28px)!important;letter-spacing:-.6px!important;margin-bottom:9px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-subtitle{font-size:13px!important;line-height:1.5!important;margin-bottom:24px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-field>label{font-size:14px!important;margin-bottom:7px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-field{margin-bottom:16px}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-row input{font-size:15px!important;min-height:49px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) #rememberLabel{font-size:14px!important;margin-bottom:18px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginButton{min-height:52px!important;font-size:16px!important;padding:13px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) #forgotPassword{font-size:15px!important}
.ff-auth-decor{inset:-10px -12px -95px}.ff-decor-book,.ff-decor-cap{font-size:47px}.ff-decor-book{left:0;top:55px}.ff-decor-cap{right:0;top:100px}.ff-decor-dot{width:9px;height:9px}
}

/* UX-59 ajustements finaux — carte équilibrée et pictogrammes discrets */
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox .ff-auth-icon{margin-bottom:10px!important}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-icon{font-size:18px!important;left:18px;color:#667997}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-icon .fa-envelope{font-weight:400}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-outline-lock{display:block;width:19px;height:19px;fill:none;stroke:#667997;stroke-width:1.65}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-forgot{margin-top:18px;margin-bottom:0}
body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-divider{margin-bottom:12px}
body:not(.authenticated):has(#authBox:not(.hidden)) #forgotPassword{padding:4px!important}
@media(max-width:600px){
 body:not(.authenticated):has(#authBox:not(.hidden)) #authBox{padding-top:17px!important;padding-bottom:17px!important}
 body:not(.authenticated):has(#authBox:not(.hidden)) #authBox .ff-auth-icon{margin-bottom:9px!important}
 body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-input-icon{font-size:17px!important}
 body:not(.authenticated):has(#authBox:not(.hidden)) .ff-outline-lock{width:18px;height:18px}
 body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-forgot{margin-top:17px!important}
 body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-divider{margin-bottom:10px!important}
}

/* UX-59 — Réinitialisation : même gabarit responsive que la connexion */
body.ff-reset-body,body.ff-reset-body *{box-sizing:border-box}
body.ff-reset-body{overflow-x:hidden}
.ff-reset-shell{position:relative;isolation:isolate;width:100%;max-width:960px;margin:0 auto;padding:32px 20px 85px}
.ff-reset-header{position:relative;z-index:0}
.ff-reset-header h1,.ff-reset-header p{position:relative;z-index:1}
.ff-reset-decor{position:absolute;inset:-25px -30px -110px;pointer-events:none;z-index:0;color:#9abffb}
.ff-reset-decor .ff-decor-book,.ff-reset-decor .ff-decor-cap{position:absolute;font-size:clamp(46px,8vw,100px);opacity:.35;filter:drop-shadow(5px 6px 0 #d2e3ff)}
.ff-reset-card{position:relative;z-index:1;box-sizing:border-box;width:min(100%,650px);max-width:650px;margin:18px auto 0;padding:clamp(26px,5vw,48px);min-width:0}
.ff-reset-card form,.ff-reset-card .pw,.ff-reset-card input,.ff-reset-card button{min-width:0;max-width:100%}
.ff-reset-card .ff-reset-icon{width:62px;height:62px;border-radius:17px;font-size:27px;margin:0 auto 16px}
.ff-reset-card .ff-lock{font-size:18px;top:50%;transform:translateY(-50%)}
.ff-reset-card .pw input{width:100%;max-width:100%;font-weight:400}
.ff-reset-card .ff-reset-submit,.ff-reset-card .ff-success-btn{display:flex;align-items:center;justify-content:center;gap:12px;max-width:100%;white-space:normal;line-height:1.25}
.ff-reset-card .ff-reset-submit span,.ff-reset-card .ff-success-btn span{font-size:1.2em;font-weight:400}
.ff-reset-card #rules{overflow-wrap:anywhere}
@media(max-width:600px){
 .ff-reset-shell{width:100%;padding:14px 16px 55px!important}
 .ff-reset-header{padding:4px 0 10px!important}
 .ff-reset-header h1{font-size:clamp(24px,7vw,30px)!important;letter-spacing:-.8px!important;margin:4px 0 8px!important;line-height:1.2}
 .ff-reset-header h1 small{font-size:11px!important;letter-spacing:0!important}
 .ff-reset-header p{font-size:13px!important;line-height:1.45!important;max-width:300px;margin:0 auto!important}
 .ff-reset-card{width:100%!important;max-width:100%!important;margin:14px auto 0!important;padding:24px 20px 30px!important;border-radius:23px!important}
 .ff-reset-card .ff-reset-icon{width:50px;height:50px;font-size:23px;border-radius:13px;margin-bottom:10px}
 .ff-reset-card h2{font-size:clamp(23px,6.3vw,28px)!important;line-height:1.18;letter-spacing:-.6px!important}
 .ff-reset-card .ff-reset-subtitle{font-size:13px!important;line-height:1.5!important;margin-bottom:24px!important}
 .ff-reset-card form>label{font-size:14px!important;font-weight:600;margin-bottom:7px!important}
 .ff-reset-card .pw input{font-size:15px!important;min-height:49px!important;padding:10px 46px 10px 43px!important}
 .ff-reset-card .ff-lock{left:15px;font-size:16px}
 .ff-reset-card .pw button{top:4px;right:4px;width:40px;height:40px;font-size:17px}
 .ff-reset-card .ff-reset-submit,.ff-reset-card .ff-success-btn{font-size:15px!important;min-height:50px!important;padding:12px 10px!important}
 .ff-reset-card #strengthLabel{font-size:12px}
 .ff-reset-card #rules{font-size:13px;line-height:1.65}
 .ff-reset-card .ff-reset-return{font-size:14px}
 .ff-reset-decor{inset:-10px -12px -95px}
 .ff-reset-decor .ff-decor-book,.ff-reset-decor .ff-decor-cap{font-size:47px}
 .ff-reset-decor .ff-decor-book{left:0;top:55px}
 .ff-reset-decor .ff-decor-cap{right:0;top:100px}
 .ff-reset-decor .ff-decor-dot{width:9px;height:9px}
 #resetSuccess,#activationSuccess{padding:10px 0}
 #resetSuccess p,#activationSuccess p{font-size:15px!important}
}

/* UX59 — harmonisation stricte des écrans d'authentification */
/* Même en-tête, typographie, largeur et placement sur connexion / réinitialisation */
body.ff-reset-body .ff-reset-shell{max-width:960px;padding:22px 18px 60px}
body.ff-reset-body .ff-reset-header,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header{padding:12px 0 8px}
body.ff-reset-body .ff-reset-header h1,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1{font-size:clamp(32px,5vw,46px);letter-spacing:-1.6px;line-height:1.2;margin:8px 0 13px}
body.ff-reset-body .ff-reset-header h1 small,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1 small{font-size:13px!important;letter-spacing:0!important;color:#64748b!important;font-weight:600}
body.ff-reset-body .ff-reset-header p,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header p{font-size:clamp(15px,2vw,19px);line-height:1.5;margin:0 auto;max-width:none}
body.ff-reset-body .ff-reset-card,body:not(.authenticated):has(#authBox:not(.hidden)) #authBox{width:min(100%,650px);max-width:650px;margin:18px auto 0}
body.ff-reset-body .ff-reset-card .ff-reset-icon,body:not(.authenticated):has(#authBox:not(.hidden)) #authBox .ff-auth-icon{width:62px;height:62px;border-radius:17px;font-size:27px;margin:0 auto 10px!important}
body.ff-reset-body .ff-reset-card h2,body:not(.authenticated):has(#authBox:not(.hidden)) #authHeading{margin:0 0 10px!important}
body.ff-reset-body .ff-reset-card .ff-reset-subtitle,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-subtitle{margin:0 auto 30px;line-height:1.5}
body.ff-reset-body .ff-reset-card form>label,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-field>label{font-size:15px;font-weight:600}
body.ff-reset-body .ff-reset-card .ff-reset-submit,body:not(.authenticated):has(#authBox:not(.hidden)) #loginButton{font-size:19px;font-weight:750}
/* Mêmes dimensions et espacement de l'icône supérieure */
body.ff-reset-body .ff-reset-card #resetIntro{padding:0;margin:0;text-align:center}
body.ff-reset-body .ff-reset-card .ff-reset-icon{display:grid;place-items:center}
@media(max-width:600px){
 body.ff-reset-body .ff-reset-shell,body:not(.authenticated):has(#authBox:not(.hidden)) main{padding:14px 16px 55px!important}
 body.ff-reset-body .ff-reset-header,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header{padding:4px 0 10px!important}
 body.ff-reset-body .ff-reset-header h1,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1{font-size:clamp(24px,7vw,30px)!important;letter-spacing:-.8px!important;margin:4px 0 8px!important;line-height:1.2}
 body.ff-reset-body .ff-reset-header h1 small,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header h1 small{font-size:11px!important}
 body.ff-reset-body .ff-reset-header p,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-main-header p{font-size:13px!important;line-height:1.45!important;max-width:300px!important;margin:0 auto!important}
 body.ff-reset-body .ff-reset-card,body:not(.authenticated):has(#authBox:not(.hidden)) #authBox{width:100%!important;max-width:100%!important;margin:14px auto 0!important;padding:17px 20px!important;border-radius:23px!important}
 body.ff-reset-body .ff-reset-card .ff-reset-icon,body:not(.authenticated):has(#authBox:not(.hidden)) #authBox .ff-auth-icon{width:50px;height:50px;font-size:23px;border-radius:13px;margin:0 auto 9px!important}
 body.ff-reset-body .ff-reset-card h2,body:not(.authenticated):has(#authBox:not(.hidden)) #authHeading{font-size:clamp(23px,6.3vw,28px)!important;line-height:1.18;letter-spacing:-.6px!important;margin-bottom:9px!important}
 body.ff-reset-body .ff-reset-card .ff-reset-subtitle,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-subtitle{font-size:13px!important;line-height:1.5!important;margin-bottom:24px!important}
 body.ff-reset-body .ff-reset-card form>label,body:not(.authenticated):has(#authBox:not(.hidden)) .ff-auth-field>label{font-size:14px!important;font-weight:600;margin-bottom:7px!important}
 body.ff-reset-body .ff-reset-card .ff-reset-submit,body:not(.authenticated):has(#authBox:not(.hidden)) #loginButton{font-size:16px!important;min-height:52px!important}
}

/* UX-59 — Activation formateur : mêmes composants et proportions que réinitialisation */
.ff-activation-body .ff-activation-intro{text-align:center}
.ff-activation-body #who{font-size:14px;color:#52678b;overflow-wrap:anywhere;margin:0 0 24px}
.ff-activation-body #form[hidden]{display:none!important}
.ff-activation-body #form>label{display:block}
.ff-activation-body #requirements{font-size:15px;line-height:1.8;margin:12px 0 25px;color:#607397}
.ff-activation-body #strengthLabel{color:#506280;font-size:14px;line-height:1.5;margin:9px 0}
.ff-activation-body #strengthBar{height:100%;width:0;transition:width .2s,background .2s}
.ff-activation-body #activate:disabled{opacity:.55;cursor:not-allowed}
.ff-activation-body #status{font-size:15px;line-height:1.5;overflow-wrap:anywhere;text-align:center}
.ff-activation-body #status:empty{display:none}
.ff-activation-body #status a{color:#0862f2;font-weight:700}
@media(max-width:600px){.ff-activation-body #who{font-size:13px}}

/* UX59 — Erreurs de connexion : ne jamais réduire la largeur du champ.
   La même interface est partagée par formateurs et administrateurs. */
body:not(.authenticated):has(#authBox:not(.hidden)) #loginForm .ff-auth-field,
body:not(.authenticated):has(#authBox:not(.hidden)) #loginForm .ff-auth-input-row,
body:not(.authenticated):has(#authBox:not(.hidden)) #loginForm .ff-password-wrap{width:100%;min-width:0;box-sizing:border-box}
body:not(.authenticated):has(#authBox:not(.hidden)) #loginFieldError{display:block;position:static;width:100%;box-sizing:border-box;clear:both;text-align:left;overflow-wrap:anywhere;margin:-7px 0 15px!important;color:#b91c1c;font-size:13px;line-height:1.4}
/* Première installation : reprend exactement la structure visuelle de l'authentification. */
body.ff-install-body .ff-install-card{text-align:left}
body.ff-install-body .ff-install-intro{text-align:center}
body.ff-install-body .ff-install-card .ff-reset-icon{margin:0 auto 10px}
body.ff-install-body .ff-install-card .ff-reset-subtitle{margin-bottom:24px}
body.ff-install-body .ff-install-card form>label{margin-top:17px}
body.ff-install-body .ff-install-card .pw{margin:0 0 17px}
body.ff-install-body .ff-install-card .pw input{margin:0}
body.ff-install-body .ff-install-card .meter{margin:0 0 8px}
body.ff-install-body #rules{font-size:14px;line-height:1.8;color:#607397;margin:12px 0 20px}
body.ff-install-body #strength{color:#506280;font-size:14px;line-height:1.5;margin:8px 0}
body.ff-install-body #message{overflow-wrap:anywhere;color:#b91c1c}
body.ff-install-body .ff-install-card .ff-reset-submit{margin-top:26px}
body.ff-install-body #adminPath{width:100%;min-height:54px;border:1.5px solid #cbd9f0;border-radius:13px;padding:12px 16px;box-sizing:border-box;font:inherit;background:white;color:#102044}
body.ff-install-body .ff-install-help{display:block;font-size:13px;color:#607397;line-height:1.5;margin-top:7px}

/* UX59 : en-tête UNIQUE sur tous les parcours d'authentification.
   Connexion = référence ; réinitialisation, activation, installation, déjà installé. */
body.ff-reset-body .ff-reset-shell,
body:not(.authenticated):has(#authBox:not(.hidden)) main {
  width:100%;max-width:960px;box-sizing:border-box;margin:0 auto;padding:22px 18px 60px;
}
.ff-auth-unified-header {
  position:relative;isolation:isolate;text-align:center;
  padding:12px 0 8px!important;margin:0!important;
}
.ff-auth-unified-header h1 {
  position:relative;z-index:1;display:block;
  font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:clamp(32px,5vw,46px)!important;font-weight:800!important;
  line-height:1.2!important;letter-spacing:-1.6px!important;
  margin:8px 0 13px!important;color:#071638!important;
}
.ff-auth-unified-header h1 small {
  display:inline;font-size:13px!important;font-weight:600!important;
  letter-spacing:0!important;color:#64748b!important;
}
.ff-auth-unified-header p {
  position:relative;z-index:1;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:clamp(15px,2vw,19px)!important;line-height:1.5!important;
  color:#607397!important;max-width:none!important;margin:0 auto!important;
}
.ff-auth-unified-header .ff-auth-decor{position:absolute;inset:-25px -30px -110px;pointer-events:none;z-index:0}
body.ff-reset-body .ff-reset-card,
body:not(.authenticated):has(#authBox:not(.hidden)) #authBox {
  width:min(100%,650px);max-width:650px;box-sizing:border-box;margin:18px auto 0!important;
}
.ff-installed-card{text-align:center!important}
.ff-installed-card .ff-reset-icon{margin:0 auto 10px!important}
.ff-installed-card .ff-reset-subtitle{margin-bottom:26px!important}
@media(max-width:600px){
 body.ff-reset-body .ff-reset-shell,
 body:not(.authenticated):has(#authBox:not(.hidden)) main{padding:14px 16px 55px!important}
 .ff-auth-unified-header{padding:4px 0 10px!important}
 .ff-auth-unified-header h1{font-size:clamp(24px,7vw,30px)!important;letter-spacing:-.8px!important;margin:4px 0 8px!important;line-height:1.2!important}
 .ff-auth-unified-header h1 small{font-size:11px!important}
 .ff-auth-unified-header p{font-size:13px!important;line-height:1.45!important;max-width:300px!important;margin:0 auto!important}
 .ff-auth-unified-header .ff-auth-decor{inset:-10px -12px -95px}
 body.ff-reset-body .ff-reset-card,
 body:not(.authenticated):has(#authBox:not(.hidden)) #authBox{width:100%!important;max-width:100%!important;margin:14px auto 0!important}
}

/* UX 60 : confirmation d’activation du formateur, sur le gabarit des confirmations */
.ff-activation-body #activationSuccess[hidden],.ff-activation-body #activationIntro[hidden]{display:none!important}

/* UX60: confirmation d’activation et confirmation de réinitialisation partagent les mêmes règles. */
#activationSuccess h2{margin:0!important}
#activationSuccess .ff-success-btn{margin-left:auto;margin-right:auto}
