/* Vérification par e-mail : six chiffres, lisibles dans les deux thèmes. */
#auth-dialog[data-mode="otp"] { width:min(460px,calc(100% - 24px)); padding:32px; border-color:var(--line); border-radius:24px; }
#auth-dialog[data-mode="otp"] #auth-dialog-title { display:none; }
#auth-otp { min-width:0; text-align:center; }
.otp-mail-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; }
.otp-mail-icon svg { width:30px; height:30px; }
html[data-theme="light"] .otp-mail-icon { color:#b84608; }
#auth-otp .otp-eyebrow { margin:0 0 8px; color:var(--muted); font-size:12px; font-weight:700; }
#auth-otp #otp-title { margin:0 0 12px; padding:0; color:var(--text); font-size:26px; line-height:1.3; letter-spacing:-.035em; }
#otp-description { margin:0 0 6px; color:var(--muted); font-size:15px; line-height:1.6; }
#otp-email { display:block; min-width:0; color:var(--text); font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
#auth-otp #otp-form { gap:12px; margin-top:28px; }
#auth-otp .otp-code-label { display:block; margin:0; color:var(--text); font-size:13px; font-weight:700; text-align:left; }
#auth-otp .otp-inputs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:0; min-width:0; direction:ltr; }
#auth-otp .otp-inputs input { width:100%; min-width:0; height:56px; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); font-size:24px !important; font-weight:800; line-height:1; text-align:center; caret-color:#ff7a1a; }
#auth-otp .otp-inputs input:focus { border-color:#c05818; outline:3px solid #c0581830; outline-offset:2px; }
#auth-otp .otp-inputs input[aria-invalid="true"] { border-color:var(--danger); }
#auth-otp .otp-inputs input:disabled { opacity:.65; }
#otp-help { margin:0; color:var(--muted); font-size:12px; line-height:1.5; text-align:left; }
#auth-otp #otp-error, #otp-status { margin:0; padding:12px; border-radius:10px; font-size:14px; line-height:1.6; text-align:left; overflow-wrap:anywhere; }
#auth-otp #otp-error { background:color-mix(in srgb,var(--danger) 9%,transparent); color:var(--danger); }
#otp-status { background:color-mix(in srgb,var(--success) 10%,transparent); color:var(--text); }
#auth-otp #otp-submit { min-height:48px; margin-top:4px; padding:12px 16px; border:1px solid #e9a67f; border-radius:12px; background:#c05818; color:#fff; font-size:15px; font-weight:800; }
#auth-otp #otp-submit:not(:disabled):hover { background:#b84608; }
#auth-otp button:disabled { opacity:.65; cursor:wait; }
#auth-otp button:focus-visible { outline:2px solid #c05818; outline-offset:3px; }
.otp-support { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.otp-support p { margin:0 0 4px; color:var(--muted); font-size:13px; line-height:1.6; }
#otp-resend, #otp-back { display:block; max-width:100%; min-height:44px; margin:0 auto; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--text); font:inherit; font-size:14px; font-weight:700; }
#otp-resend:not(:disabled):hover, #otp-back:not(:disabled):hover { background:var(--surface); }
#otp-back { margin-top:8px; color:var(--muted); font-size:13px; font-weight:600; }
@media(max-width:480px) { #auth-dialog[data-mode="otp"] { padding:24px 20px; } #auth-otp #otp-title { font-size:24px; } #auth-otp .otp-inputs { gap:6px; } #auth-otp .otp-inputs input { height:52px; border-radius:10px; } }
@media(max-width:480px) and (max-height:750px) { .otp-mail-icon { width:48px; height:48px; margin:0 auto 14px; border-radius:14px; } #auth-otp .otp-eyebrow { display:none; } #auth-otp #otp-form { margin-top:20px; gap:10px; } .otp-support { margin-top:18px; padding-top:12px; } #otp-back { margin-top:4px; } }
@media(max-height:600px) { .otp-mail-icon { width:48px; height:48px; margin:0 auto 12px; border-radius:14px; } #auth-otp #otp-form { margin-top:20px; } .otp-support { margin-top:18px; padding-top:14px; } }
