@media screen{
 /* En-tête commun : logo et nom sur une ligne, version seule en dessous. */
 html body .server-auth .auth-brand{display:flex!important;align-items:center!important;gap:12px!important}
 html body .server-auth .auth-brand>img{flex:none;width:48px;height:48px;object-fit:contain}
 html body .server-auth .auth-brand>div{display:flex;flex-direction:column;gap:4px;min-width:0}
 html body .server-auth .auth-brand h1{margin:0!important;font-size:clamp(18px,2vw,28px)!important;line-height:1.2!important}
 html body .server-auth .auth-brand p{margin:0!important}
 /* Retours : flèche dans le même flux et sur la même ligne que le libellé. */
 html body .server-auth :is(#resetBack,#mfaLoginBack){display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;line-height:1.3!important;min-height:40px!important;white-space:normal;position:relative!important}
 html body .server-auth :is(#resetBack,#mfaLoginBack)::before{content:none!important}
 html body .server-auth :is(#resetBack,#mfaLoginBack)::after{content:none!important}
 /* Tous les vrais boutons et champs des cinq scènes utilisent leur rectangle. */
 html[data-appearance] body .auth-scene:not(.auth-flow-scene) .scene-field input{display:block!important;height:100%!important;width:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important}
 html[data-appearance] body .auth-scene .scene-visible-submit{display:flex!important;align-items:center!important;justify-content:center!important;color:white!important;font-size:clamp(14px,1.4cqw,28px)!important;line-height:1!important;z-index:4!important;pointer-events:auto!important;max-width:none!important;max-height:none!important;opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
 html[data-appearance="white"] body .auth-scene .scene-visible-submit:is(button,:hover,:focus,:active){background:#0868ed!important;color:#fff!important;border-radius:1.3cqw!important}
 html[data-appearance="aurora"] body .auth-scene .scene-visible-submit:is(button,:hover,:focus,:active){background:#00839e!important;color:#fff!important;border-radius:.6cqw!important}
 html[data-appearance="garden"] body .auth-scene .scene-visible-submit:is(button,:hover,:focus,:active){background:#009c99!important;color:#fff!important;border-radius:1.2cqw!important}
 html[data-appearance] body .auth-scene .scene-visible-submit::after{content:'→';position:absolute;right:6%;font-size:1.5em}
 /* Même scène lors du MFA et de la récupération, sans les champs dessinés. */
 html[data-appearance] body .auth-continuation .auth-flow-scene .auth-card{left:var(--flow-left)!important;top:var(--flow-top)!important;right:auto!important;bottom:auto!important;width:var(--flow-width)!important;height:var(--flow-height)!important;min-height:0!important;max-height:100%!important;padding:3cqw!important;overflow:auto!important;display:block!important;background:#fcfdff!important;border-radius:1.3cqw!important;color:#19354e!important}
 html[data-appearance="copper"] body .auth-continuation .auth-flow-scene .auth-card{background:#faf7f1!important;border-radius:0!important;padding:4cqw 5.2cqw!important}
 html[data-appearance="white"] body .auth-continuation .auth-flow-scene .auth-card{border-radius:0!important;background:#fff!important}
 html[data-appearance="aurora"] body .auth-continuation .auth-flow-scene .auth-card{background:#d7edf5!important;border-radius:1.3cqw!important}
 html[data-appearance="garden"] body .auth-continuation .auth-flow-scene .auth-card{background:#fff!important}
 html[data-appearance] body .auth-flow-scene .auth-card>:is(.auth-company-logo,.auth-brand,h2,.auth-info,.auth-security-note){display:revert!important}
 html[data-appearance] body .auth-flow-scene .auth-brand{display:flex!important;margin:1cqw 0 1.5cqw!important}
 html[data-appearance] body .auth-flow-scene .auth-brand>img{width:2.5cqw!important;height:2.5cqw!important}
 html[data-appearance] body .auth-flow-scene .auth-brand h1{font-size:clamp(16px,1.4cqw,26px)!important}
 html[data-appearance] body .auth-flow-scene .auth-brand p{font-size:clamp(11px,.8cqw,16px)!important;color:#41576a!important}
 html[data-appearance] body .auth-flow-scene .auth-company-logo{text-align:center;margin-bottom:1cqw!important}
 html[data-appearance] body .auth-flow-scene .auth-company-logo img{max-width:100%!important;max-height:4cqw!important;object-fit:contain}
 html[data-appearance] body .auth-flow-scene .auth-card :is(p,small,label,h2,h3,h4){color:#19354e!important}
 html[data-appearance] body .auth-flow-scene .auth-card h2{font-size:clamp(20px,1.8cqw,34px)!important;line-height:1.2!important;margin:0 0 1cqw!important}
 html[data-appearance] body .auth-flow-scene .auth-card form{display:grid!important;gap:1cqw!important;width:100%!important}
 html[data-appearance] body .auth-flow-scene .auth-card label{display:grid!important;gap:.4cqw!important}
 html[data-appearance] body .auth-flow-scene .auth-card input{width:100%!important;min-height:40px!important;height:3.5cqw!important;padding:.7cqw!important;border:1px solid #a8bdcf!important;border-radius:.7cqw!important;background:#fff!important;color:#19354e!important}
 html[data-appearance] body .auth-flow-scene .auth-card .primary{background:var(--blue)!important;color:white!important;min-height:44px!important;padding:.8cqw!important;border-radius:.8cqw!important;width:100%!important}
 html[data-appearance] body .auth-flow-scene .auth-links{display:grid!important;gap:.6cqw!important}
 html[data-appearance] body .auth-flow-scene :is(#resetMessage,#mfaLoginError,#mfaSetupError):empty{display:none!important}
 html[data-appearance] body .auth-flow-scene :is(#resetBack,#mfaLoginBack){color:#0866b5!important;background:#edf4fa!important}
 /* Retrait visuel des numéros/titres de présentation, sans modifier les dessins. */
 .auth-scene::before,.appearance-original-preview::before{content:'';position:absolute;left:1.1%;top:1.7%;width:18%;height:4.2%;background:var(--caption-cover,#071b2d);z-index:1;pointer-events:none}
 html[data-appearance="copper"] .auth-scene{--caption-cover:linear-gradient(90deg,#293037,#242c32)}
 html[data-appearance="white"] .auth-scene{--caption-cover:linear-gradient(90deg,#ccc5bf,#d2cbc3)}
 html[data-appearance="aurora"] .auth-scene{--caption-cover:linear-gradient(90deg,#06234c,#05214b)}
 html[data-appearance="garden"] .auth-scene{--caption-cover:linear-gradient(90deg,#fafbef,#eef1dd)}
 .appearance-original-preview[data-preview-theme="copper"]{--caption-cover:linear-gradient(90deg,#293037,#242c32)}
 .appearance-original-preview[data-preview-theme="white"]{--caption-cover:linear-gradient(90deg,#ccc5bf,#d2cbc3)}
 .appearance-original-preview[data-preview-theme="aurora"]{--caption-cover:linear-gradient(90deg,#06234c,#05214b)}
 .appearance-original-preview[data-preview-theme="garden"]{--caption-cover:linear-gradient(90deg,#fafbef,#eef1dd)}
 .appearance-original-preview[data-preview-theme="classic"]::before{display:none}
 @media(min-width:761px){html[data-appearance] body .auth-scene :is(.scene-field,.scene-submit,.scene-forgot,.scene-password-toggle){left:var(--scene-left)!important;top:var(--scene-top)!important;width:var(--scene-width)!important;height:var(--scene-height)!important;min-height:0!important;max-height:none!important;max-width:none!important}}
 @media(max-width:760px){
  .auth-scene::before{display:none}
  html[data-appearance] body .auth-scene:not(.auth-flow-scene) .scene-field input{height:46px!important;min-height:46px!important}
  html[data-appearance] body .auth-scene .scene-visible-submit{position:relative!important;min-height:46px!important;font-size:16px!important}
  html[data-appearance] body .auth-continuation .auth-flow-scene .auth-card{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:24px!important;border-radius:16px!important}
  html[data-appearance] body .auth-flow-scene .auth-brand>img{width:40px!important;height:40px!important}
  html[data-appearance] body .auth-flow-scene .auth-company-logo img{max-height:70px!important}
 }
}

@media screen{
 html body .server-auth :is(#resetBack,#mfaLoginBack)>.btn-icon{position:static!important;display:inline-block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;transform:none!important;margin:0!important;align-self:center!important;vertical-align:middle!important}
 html[data-appearance] body .auth-continuation .auth-flow-scene .auth-card>.auth-brand{display:flex!important;align-items:center!important}
}
