/* Demande de lien et nouveau mot de passe : un parcours lisible sur mobile. */
#auth-dialog[data-mode="password-reset"] { width:min(460px,calc(100% - 24px)); padding:32px; border-color:var(--line); border-radius:24px; }
#auth-dialog[data-mode="password-reset"] #auth-dialog-title { display:none; }
#auth-password-reset { min-width:0; text-align:center; }
.password-reset-icon { display:grid; place-items:center; width:64px; height:64px; margin:6px auto 20px; border:1px solid #c0581840; border-radius:20px; background:#c0581818; color:#ff984d; }
.password-reset-icon svg { display:none; width:30px; height:30px; }
#auth-password-reset[data-stage="request"] .reset-lock, #auth-password-reset[data-stage="new"] .reset-lock, #auth-password-reset[data-stage="sent"] .reset-mail, #auth-password-reset[data-stage="done"] .reset-check { display:block; }
#auth-password-reset[data-stage="done"] .password-reset-icon { color:var(--success); border-color:color-mix(in srgb,var(--success) 30%,transparent); background:color-mix(in srgb,var(--success) 10%,transparent); }
html[data-theme="light"] .password-reset-icon { color:#b84608; }
#auth-password-reset #password-reset-title { margin:0 0 12px; padding:0; font-size:26px; line-height:1.3; letter-spacing:-.035em; overflow-wrap:anywhere; }
#auth-password-reset #password-reset-title:focus { outline:none; }
#password-reset-description { margin:0; color:var(--muted); font-size:15px; line-height:1.7; }
#auth-password-reset form { margin-top:26px; gap:10px; text-align:left; }
#auth-password-reset label { margin-top:4px; color:var(--text); font-size:13px; font-weight:700; }
#auth-password-reset input { min-width:0; height:50px; padding:0 14px; border-radius:11px; font-size:16px; }
#auth-password-reset .password-wrap input { padding-right:86px; }
#auth-password-reset input:focus { border-color:#c05818; outline:3px solid #c0581830; outline-offset:2px; }
#auth-password-reset input[aria-invalid="true"] { border-color:var(--danger); }
#auth-password-reset .show-password { right:6px; min-height:44px; padding:6px; border-radius:7px; font-size:12px; }
#new-password-help { margin:0 0 8px; color:var(--muted); font-size:12px; line-height:1.5; }
#auth-password-reset .auth-primary { min-height:48px; margin-top:8px; padding:12px 16px; border:1px solid #e9a67f; border-radius:12px; background:#c05818; color:#fff; font-size:15px; font-weight:800; }
#auth-password-reset .auth-primary:not(:disabled):hover { background:#b84608; }
#auth-password-reset button:focus-visible { outline:2px solid #c05818; outline-offset:3px; }
#auth-password-reset button:disabled, #auth-password-reset input:disabled { opacity:.65; cursor:wait; }
#password-reset-error, #password-reset-status, .password-reset-success { margin:20px 0 0; padding:12px; border-radius:10px; font-size:14px; line-height:1.6; text-align:left; overflow-wrap:anywhere; }
#password-reset-error { background:color-mix(in srgb,var(--danger) 9%,transparent); color:var(--danger); }
#password-reset-status, .password-reset-success { background:color-mix(in srgb,var(--success) 10%,transparent); color:var(--text); }
#password-reset-recipient { display:block; margin:16px 0 0; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.password-reset-hint { margin:18px 0; color:var(--muted); font-size:13px; line-height:1.7; }
#auth-password-reset .password-reset-link { display:block; max-width:100%; min-height:44px; margin:8px auto 0; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--text); font:inherit; font-size:14px; font-weight:600; }
#auth-password-reset .password-reset-link:not(:disabled):hover { background:var(--surface); }
#auth-password-reset #password-reset-back { margin-top:20px; padding-top:14px; border-top:1px solid var(--line); border-radius:0; color:var(--muted); font-size:13px; width:100%; }
#auth-password-reset #auth-captcha { margin:8px 0; text-align:left; }
@media(max-width:480px) { #auth-dialog[data-mode="password-reset"] { padding:24px 20px; } #auth-password-reset #password-reset-title { font-size:24px; } }
@media(max-height:750px) { .password-reset-icon { width:48px; height:48px; margin:0 auto 14px; border-radius:14px; } #auth-password-reset form { margin-top:20px; } #auth-password-reset #password-reset-back { margin-top:14px; } }
