/* Écrans d'accès AB-Naturel : une même identité, sans styles de thème hérités. */
:root{--auth-blue:#174b8e;--auth-navy:#102b50;--auth-red:#d92d3a;--auth-ink:#142440;--auth-muted:#66748a;--auth-line:#dfe6f0;--auth-soft:#f5f8fd}
*{box-sizing:border-box}
.auth-page{margin:0;color:var(--auth-ink);background:radial-gradient(ellipse at 2% 25%,#e6edf9,transparent 45%),#f6f8fc;font:16px/1.6 "Muli","Segoe UI",sans-serif;min-height:100vh}
.auth-page [hidden]{display:none!important}
.auth-page a{color:var(--auth-blue);text-decoration:none}
.auth-page a:hover{text-decoration:underline;text-underline-offset:4px}
.auth-page button,.auth-page input{font:inherit}
.auth-page button{cursor:pointer}
.auth-page :focus-visible{outline:3px solid #5092f4;outline-offset:4px}
.auth-skip{position:fixed;top:8px;left:8px;transform:translateY(-160%);z-index:5;background:white;padding:10px 20px;border-radius:8px}
.auth-skip:not(:focus){opacity:0;pointer-events:none}
.auth-skip:focus{transform:none;opacity:1;pointer-events:auto}
.auth-topbar,.auth-footer{width:min(1140px,calc(100% - 64px));margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px}
.auth-topbar{min-height:102px}
.auth-brand{display:flex;gap:12px;align-items:center;color:var(--auth-navy)!important}
.auth-brand img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px;border:1px solid #e3e8ef}
.auth-brand strong,.auth-brand small{display:block}
.auth-brand strong{font-size:19px;letter-spacing:-.6px}
.auth-brand small{font-size:11px;color:var(--auth-muted);margin-top:1px}
.auth-toplink{font-size:13px;font-weight:600;display:flex;align-items:center;gap:9px;color:#52617b!important}
.login-shell{width:min(1140px,calc(100% - 64px));margin:10px auto 0;display:grid;grid-template-columns:46% 54%;background:#fff;border-radius:26px;border:1px solid #e0e6ef;box-shadow:0 24px 75px -35px #203c6c42;overflow:hidden;min-height:662px}
.login-showcase{background:radial-gradient(ellipse at 15% 65%,#124389 0,transparent 60%),linear-gradient(135deg,#101f3c,#071324);color:#fff;padding:46px 42px 32px;position:relative;overflow:hidden;display:flex;flex-direction:column}
.login-showcase:after{content:"";position:absolute;inset:0;background-image:radial-gradient(#a4c8ff24 .6px,transparent .6px);background-size:20px 20px;pointer-events:none;mask-image:linear-gradient(transparent,#000)}
.login-showcase>*{position:relative;z-index:1}
.auth-eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:2px;color:#c5d5ef;font-weight:700}
.auth-eyebrow>span{width:6px;height:6px;border-radius:50%;background:var(--auth-red);box-shadow:0 0 12px #d92d3a70}
.login-showcase h2{font-size:clamp(28px,2.8vw,38px);line-height:1.22;letter-spacing:-1.3px;font-weight:600;margin:27px 0 17px;color:white}
.login-showcase h2 em{font-style:normal;color:#fff}
.showcase-description{margin:0;color:#b6c7df;font-size:14px;line-height:1.8;max-width:350px}
.auth-art{height:270px;width:100%;max-width:355px;margin:8px auto 6px;position:relative;flex:1;min-height:230px;perspective:700px}
.auth-orbit{position:absolute;width:235px;height:235px;border:1px solid #73a5ed25;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.orbit-one{box-shadow:0 0 0 25px #478ced05,0 0 0 50px #478ced04}
.orbit-two{width:310px;height:120px;transform:translate(-50%,-30%) rotate(-22deg);border-color:#ef667b45}
.auth-lock{position:absolute;left:50%;top:50%;width:138px;height:175px;transform:translate(-50%,-50%) rotate(-9deg) rotateY(-18deg);filter:drop-shadow(13px 24px 16px #0006)}
.lock-shackle{position:absolute;left:31px;top:0;width:84px;height:100px;border:14px solid var(--auth-red);border-bottom:0;border-radius:48px 48px 0 0;box-shadow:inset 4px 0 4px #821924,3px -2px 0 #ff9ca4,9px 1px 0 #861b2a;background:transparent}
.lock-body{position:absolute;bottom:0;width:145px;height:112px;background:linear-gradient(130deg,#72acff 0,#2866c1 28%,#13498c 75%);border:1px solid #8fbdff;border-radius:23px;box-shadow:inset 0 3px 2px #c2dcff55,8px 7px 0 #082e63,10px 9px 0 #4e7eb5;display:grid;place-items:center}
.lock-keyhole{width:13px;height:31px;background:linear-gradient(90deg,#fff,#cbdcf2);clip-path:polygon(0 0,100% 0,100% 42%,67% 58%,84% 100%,16% 100%,33% 58%,0 42%);border-radius:50% 50% 0 0;filter:drop-shadow(0 2px 1px #000)}
.art-chip{position:absolute;display:grid;place-items:center;width:43px;height:43px;background:linear-gradient(145deg,#355b8c,#142a48);border:1px solid #8caaca70;border-radius:12px;box-shadow:4px 5px 0 #020c20aa;color:#fff;font-size:23px}
.chip-check{top:24%;right:2%;transform:rotate(12deg)}
.chip-star{bottom:12%;left:4%;transform:rotate(-12deg)}
.art-spark{position:absolute;width:5px;height:5px;border-radius:50%;background:#ff7083;box-shadow:0 0 14px #d92d3a80}
.spark-one{left:13%;top:20%}.spark-two{right:16%;bottom:16%;width:3px;height:3px}
.auth-showcase-bottom{display:flex;gap:13px;align-items:center;padding-top:21px;border-top:1px solid #adc9f124}
.auth-showcase-bottom>i{font-size:24px;color:#fff}
.auth-showcase-bottom p{margin:0;font-size:12px;color:#dee8f8}.auth-showcase-bottom span{display:block;font-size:11px;color:#91a7c6;margin-top:3px}
.login-panel{display:flex;align-items:center;padding:48px 55px;min-width:0}
.login-box{width:100%;max-width:430px;margin:auto}
.auth-form-eyebrow{display:block;font-size:10px;letter-spacing:1.8px;font-weight:800;color:#738096;margin-bottom:24px}
.login-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#edf4ff;border:1px solid #dfebfc;color:var(--auth-blue);font-size:23px;margin-bottom:18px}
.login-box h1{margin:0 0 13px;font-size:30px;letter-spacing:-1px;line-height:1.2;color:var(--auth-ink);font-weight:800}
.login-box>p,.auth-description{font-size:14px;color:var(--auth-muted);margin:0 0 26px;line-height:1.75}
.form-field{margin-bottom:21px}.form-field label{display:block;font-size:13px;font-weight:700;color:#293a53;margin-bottom:8px}
.label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.label-row a{font-size:11px;font-weight:600}
.input-wrap{position:relative;display:flex;align-items:center}.input-wrap>i{position:absolute;left:16px;color:#7e8fa7;font-size:17px;pointer-events:none}
.input-wrap input{width:100%;min-width:0;min-height:54px;border:1px solid #d9e1ec;border-radius:10px;background:#fcfdff;padding:13px 47px 13px 45px;color:#172a45;font-size:15px;transition:border-color .2s,box-shadow .2s}
.input-wrap input::placeholder{color:#8895a8}.input-wrap input:focus{outline:0;border-color:#4c85df;box-shadow:0 0 0 4px #0c5adb10;background:#fff}
.password-toggle{position:absolute;right:5px;width:42px;height:42px;border:0;background:transparent;color:#647791;border-radius:7px;font-size:18px}
.field-hint{margin:8px 0 0;color:#738097;font-size:11px;line-height:1.6}
.login-submit{display:flex;justify-content:center;align-items:center;gap:15px;min-height:54px;width:100%;padding:13px 18px;border:1px solid #0950c5;border-radius:10px;background:linear-gradient(110deg,#135fdd,#084cc3);color:#fff;font-weight:700;font-size:14px;box-shadow:0 6px 0 -3px #063478,0 10px 22px -10px #0c5adb80;transition:background .2s,transform .2s}
.login-submit:hover{background:#0845ad;transform:translateY(-1px)}.login-submit:disabled{opacity:.65;cursor:wait;transform:none}
.auth-note,.login-help,.otp-help{display:flex;align-items:flex-start;gap:11px;padding:15px 16px;margin-top:22px;background:#f6f8fc;border:1px solid #e8edf4;border-radius:10px}
.auth-note i,.login-help>i,.otp-help>i{color:#8292a9;font-size:17px}.auth-note p,.login-help p,.otp-help p{font-size:11px;line-height:1.7;color:#64728a;margin:0}.login-help{flex-wrap:wrap}.login-help p{flex:1}.login-help a{font-size:11px;font-weight:700}
.auth-return{display:flex;justify-content:center;gap:9px;align-items:center;margin:23px 0 0;font-size:12px;font-weight:700;color:#4e617c!important}
.auth-assistance{border-top:1px solid #e8edf3;padding-top:23px;margin-top:27px;font-size:11px;color:#7a869a;display:flex;justify-content:center;flex-wrap:wrap;gap:6px}.auth-assistance a{font-weight:700}
.auth-footer{padding:22px 0 28px;font-size:10px;color:#7d899b}.auth-footer span:last-child{display:flex;gap:7px;align-items:center}
.alert{padding:13px 15px;margin:0 0 18px;border-radius:9px;border:1px solid #d9e7f8;background:#eff5ff;color:#234675;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.alert i{margin-right:8px}.alert-danger,.alert-warning{color:#943339;background:#fff3f3;border-color:#f0d3d7}.alert-success{color:#176844;background:#ecf8f1;border-color:#c6e6d5}
.recovery-result{border:1px solid #c9e6d9;background:#f3fbf7;padding:24px;border-radius:14px;margin-top:20px}.recovery-result>i{font-size:30px;color:#287351}.recovery-result h2{font-size:20px;margin:10px 0;color:#175638}.recovery-result p{font-size:13px;color:#476659}.auth-text-button{background:transparent;border:0;padding:8px 0;color:var(--auth-blue);font-weight:700;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.auth-pending{display:flex;justify-content:center;align-items:center;gap:9px;color:#67768d;font-size:12px;margin:17px 0}.auth-spinner{width:15px;height:15px;border:2px solid #d2dff3;border-top-color:var(--auth-blue);border-radius:50%;animation:auth-spin .8s linear infinite}@keyframes auth-spin{to{transform:rotate(360deg)}}
.password-rules{list-style:none;padding:0;margin:13px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;color:#6c7c93;font-size:10px}.password-rules li:before{content:"○";margin-right:5px}.password-rules li.is-valid:before{content:"✓"}.is-valid{color:#22734f!important}
.otp-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:25px 0 22px}.otp-digit{width:100%;height:58px;border:1px solid #cfdaeb;border-radius:11px;background:#fcfdff;color:#18365e;font-size:24px;text-align:center;font-weight:700}.otp-digit:focus{border-color:var(--auth-blue);box-shadow:0 0 0 3px #0c5adb12}
.otp-destination{display:inline-flex;gap:8px;align-items:center;max-width:100%;overflow-wrap:anywhere;font-size:12px;border-radius:8px;padding:8px 12px;background:#eef4ff;color:#375c8f}.otp-resend{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;font-size:11px;color:#6a7990}.otp-resend button{background:none;border:0;color:var(--auth-blue);font-weight:700;font-size:11px;padding:7px}.otp-resend button:disabled{color:#8390a3;cursor:not-allowed}
.login-progress{margin-top:17px}.login-progress>div{height:4px;background:#edf1f7;border-radius:9px;overflow:hidden}.login-progress span{display:block;height:100%;width:0;background:var(--auth-blue);transition:width .3s}.login-progress p{font-size:11px;color:#6e7d93;margin:8px 0}
@media(min-width:1500px){.auth-topbar{min-height:120px}.login-shell{min-height:700px}}
@media(max-width:1000px){.login-panel{padding:38px 30px}.login-showcase{padding:38px 29px 28px}.auth-topbar,.auth-footer,.login-shell{width:calc(100% - 40px)}.login-showcase h2{font-size:30px}.login-box h1{font-size:27px}.auth-art{transform:scale(.9)}}
@media(max-width:740px){.auth-topbar{min-height:85px}.auth-brand small{font-size:10px}.auth-toplink{font-size:11px}.login-shell{grid-template-columns:1fr;max-width:540px;margin-top:0;min-height:0}.login-showcase{padding:26px 27px}.login-showcase h2{font-size:27px;line-height:1.2;margin:15px 0 0}.auth-eyebrow{font-size:9px;letter-spacing:1.4px}.showcase-description,.auth-art,.auth-showcase-bottom{display:none}.login-panel{padding:31px 28px 35px}.auth-form-eyebrow{margin-bottom:17px}.login-icon{display:none}.login-box h1{font-size:27px}.auth-footer{max-width:540px;flex-wrap:wrap;justify-content:center;gap:6px;text-align:center}.auth-assistance{margin-top:24px}.login-box>p{margin-bottom:22px}.otp-resend{flex-wrap:wrap}}
@media(max-width:380px){.auth-topbar,.auth-footer,.login-shell{width:calc(100% - 24px)}.auth-brand{gap:8px}.auth-brand img{width:42px;height:42px}.auth-brand strong{font-size:16px}.auth-brand small{display:none}.login-panel{padding:27px 20px}.login-showcase{padding:23px 20px}.label-row{flex-wrap:wrap;gap:0;margin-bottom:8px}.password-rules{grid-template-columns:1fr}.otp-grid{gap:5px}.otp-digit{height:48px;font-size:20px}}
@media(max-width:740px){.input-wrap input{font-size:16px}}
/* Cadre fixe : le formulaire reste accessible si le clavier ou le zoom réduit l'écran. */
.auth-page{height:100vh;height:100dvh;min-height:0;display:grid;grid-template-rows:76px minmax(0,1fr) 40px;overflow:hidden}
.auth-topbar{min-height:0;height:100%}
.login-shell{align-self:center;height:min(100%,700px);min-height:0;margin:0 auto}
.login-showcase{padding:32px 36px 24px;background:radial-gradient(ellipse at 15% 65%,#205da0 0,transparent 62%),linear-gradient(135deg,#12365f,#102747)}
.login-showcase h2{font-size:clamp(26px,2.7vw,36px);margin-top:22px}
.login-showcase h2 em:after{content:"";display:block;width:44px;height:3px;background:var(--auth-red);border-radius:3px;margin-top:17px}
.auth-art{min-height:100px;height:auto;margin-top:0}
.login-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:25px 45px;align-items:safe center}
.login-box{margin:auto;width:100%}
.auth-form-eyebrow{margin-bottom:16px}
.login-icon{margin-bottom:12px;width:40px;height:40px;font-size:21px}
.login-box h1{font-size:28px;margin-bottom:11px}
.login-box>p{margin-bottom:20px}
.form-field{margin-bottom:16px}
.input-wrap input{min-height:50px}
.login-submit{min-height:50px;background:linear-gradient(110deg,#225ea5,var(--auth-blue));border-color:#164582;box-shadow:0 6px 0 -3px #102e53,0 10px 22px -10px #174b8e60}
.login-submit:hover{background:#123f79}
.auth-note,.login-help,.otp-help{margin-top:16px;padding:12px 14px}
.auth-return{margin-top:17px}
.auth-assistance{margin-top:19px;padding-top:16px}
.auth-footer{height:100%;padding:0;font-size:10px}
@media(max-height:760px){
  .auth-page{grid-template-rows:64px minmax(0,1fr) 32px}
  .login-panel{padding-top:20px;padding-bottom:20px}
  .login-icon{display:none}
  .auth-form-eyebrow{margin-bottom:14px}
  .login-showcase{padding-top:26px}
  .auth-art{transform:scale(.8)}
  .login-showcase h2{font-size:29px}
  .auth-showcase-bottom{padding-top:12px}
}
@media(max-width:740px){
  .auth-page{grid-template-rows:70px minmax(0,1fr) 32px}
  .login-shell{display:flex;flex-direction:column;max-width:540px;height:min(100%,680px)}
  .login-showcase{display:none}
  .login-panel{flex:1;padding:24px;min-height:0;border-top:3px solid var(--auth-red)}
  .login-box h1{font-size:26px}
  .auth-footer{flex-wrap:nowrap;justify-content:center}
  .auth-footer span:last-child{display:none}
  .auth-brand img{width:44px;height:44px}
  .auth-form-eyebrow{color:var(--auth-blue)}
}
@media(max-width:380px){
  .auth-page{grid-template-rows:60px minmax(0,1fr) 28px}
  .login-panel{padding:17px}
  .login-box h1{font-size:24px}
  .login-box>p{font-size:13px;line-height:1.6;margin-bottom:16px}
  .password-rules{grid-template-columns:1fr 1fr;gap:4px 8px}
  .label-row{flex-wrap:nowrap;gap:8px}
  .label-row a{font-size:10px}
  .auth-assistance{padding-top:13px;margin-top:15px}
  .otp-grid{margin:17px 0;gap:5px}
}
@media(max-height:560px){.login-showcase .showcase-description,.auth-showcase-bottom{display:none}.login-panel{align-items:flex-start}.login-box{margin-top:0;margin-bottom:0}.auth-brand small{display:none}}
@media(max-height:680px){
  .auth-form-eyebrow{display:none}
  .login-panel{padding-top:14px;padding-bottom:14px}
  .login-box h1{font-size:24px;margin-bottom:9px}
  .login-box>p{font-size:13px;line-height:1.55;margin-bottom:13px}
  .form-field{margin-bottom:12px}
  .form-field label{margin-bottom:6px}
  .input-wrap input{min-height:46px;padding-top:10px;padding-bottom:10px}
  .login-submit{min-height:46px;padding-top:10px;padding-bottom:10px}
  .auth-note,.login-help,.otp-help{margin-top:12px;padding:9px 11px;gap:8px}
  .login-help p{font-size:10px;line-height:1.5}
  .login-help a{font-size:10px}
  .auth-return{margin-top:12px}
  .auth-assistance{margin-top:12px;padding-top:10px;font-size:10px}
  .field-hint{font-size:10px;margin-top:6px}
  .password-rules{margin-top:8px}
  .otp-grid{margin-top:16px;margin-bottom:16px}
}
/* Typographie affirmée et champs noirs, communs aux formulaires d'accès. */
.auth-page .login-box h1{font-weight:900;color:#101820}
.auth-page .login-showcase h2{font-weight:800}
.auth-page .login-box>p{font-weight:600;color:#3e4b60}
.auth-page .form-field label{font-weight:800;color:#111820}
.auth-page .input-wrap input,
.auth-page .otp-digit{border:2px solid #171b22;background:#fff;color:#101820;font-weight:700;box-shadow:0 3px 0 #171b220c}
.auth-page .input-wrap input::placeholder{color:#667085;font-weight:600;opacity:1}
.auth-page .input-wrap>i,
.auth-page .password-toggle{color:#222a35}
.auth-page .input-wrap input:hover,
.auth-page .otp-digit:hover{border-color:#000}
.auth-page .input-wrap input:focus,
.auth-page .otp-digit:focus{border-color:#000;outline:0;box-shadow:0 0 0 4px #174b8e22,0 3px 0 #171b220c}
.auth-page .field-hint,
.auth-page .auth-note p,
.auth-page .login-help p,
.auth-page .otp-help p{font-weight:600;color:#4e5b70}
.auth-page .login-submit{font-weight:800}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
