/*
 * auth-theme.css : mode sombre des pages de connexion.
 * Chargée par login.html, register.html et reset-password.html
 * (racine et dossiers de langue ar, de, es, fr, hi, it, ja, ko, pt, tr, zh),
 * juste après /fonts/inter.css. Pas dans admin/login.html ni bienvenue.html.
 * Le clair n'est pas modifié : tout ce qui suit ne vaut que pour html[data-theme="dark"].
 * Place du bouton de thème (theme-toggle.js) : dans le bandeau .brand-panel.
 */

/* Place du bouton de thème (lot 3) : vaut en clair comme en sombre ; le bouton n'existe que si DARK_MODE est allumé. */
html[data-dk-theme-mode] .brand-panel{position:relative;}
.brand-panel > .dk-theme-btn{position:absolute;top:43px;right:40px;}
@media (max-width:900px){
  .brand-panel > .dk-theme-btn{top:10px;right:14px;}
  html[data-dk-theme-mode] .brand-panel .brand-pitch-mobile{padding-right:52px;}
  .brand-panel > .brand-back + .dk-theme-btn{position:static;}
}

/* Thème sombre (11/11/2026), lot 3 */
html[data-theme="dark"]:root{--error:#EA9A9A;--warning:#E8BC72;--success:#86CBA2;}
html[data-theme="dark"] body{background:#1E1716;}
html[data-theme="dark"] .brand-panel{background:#17110F;}
html[data-theme="dark"] .brand-preview{background:#261D1C;}
html[data-theme="dark"] .card{background:#1E1716;}
html[data-theme="dark"] .google-btn,
html[data-theme="dark"] .secondary-btn{background:#261D1C;}
html[data-theme="dark"] .google-btn:hover,
html[data-theme="dark"] .secondary-btn:hover{background:#322726;}
html[data-theme="dark"] .apple-btn{box-shadow:inset 0 0 0 1px rgba(246,241,233,.22);}
html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .digit-box:focus,
html[data-theme="dark"] .digit-box.filled,
html[data-theme="dark"] .code-input:focus,
html[data-theme="dark"] .code-input.filled,
html[data-theme="dark"] #twoFACode.recovery-input:focus{background:#261D1C;}
html[data-theme="dark"] .form-input:focus:not(.error), html[data-theme="dark"] .digit-box:focus:not(.error), html[data-theme="dark"] .code-input:focus:not(.error), html[data-theme="dark"] #twoFACode.recovery-input:focus{box-shadow:0 0 0 3px rgba(184,76,96,.35);}
html[data-theme="dark"] .alert-error{background:#3A1D1D;border-color:#8A2A2A;color:#EA9A9A;}
html[data-theme="dark"] .alert-success{background:#1D3025;border-color:rgba(134,203,162,.35);color:#86CBA2;}
html[data-theme="dark"] #twoFAError{background:#3A1D1D !important;color:#EA9A9A !important;}
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .brand-preview-time,
html[data-theme="dark"] .forgot-link,
html[data-theme="dark"] .card-footer a,
html[data-theme="dark"] .terms-text a,
html[data-theme="dark"] .change-email-link,
html[data-theme="dark"] .inbox-btn{color:#E8A3AD;}
html[data-theme="dark"] .resend-btn:not(:disabled), html[data-theme="dark"] .resend-row button:not(:disabled){color:#E8A3AD;}
html[data-theme="dark"] .resend-btn:disabled, html[data-theme="dark"] .resend-row button:disabled{color:#A99D96;}
html[data-theme="dark"] #recoveryToggle,
html[data-theme="dark"] a[href="mailto:support@dokitscript.com"]{color:#E8A3AD !important;}
