/**
 * DM Auth Forms - Personnalisation formulaires authentification
 * 
 * @package     DM_Auth
 * @version     1.0.1
 * @author      David M
 * @description CSS complet pour connexion, inscription, mot de passe oublié
 * 
 * STRUCTURE :
 * 1. Variables CSS (Design Tokens)
 * 2. Reset & Base
 * 3. Layout & Structure
 * 4. Formulaires (inputs, labels, boutons)
 * 5. Responsive
 * 6. Accessibilité
 * 7. Animations
 * 
 * NOTES v1.0.1 :
 * - Messages d'erreur WooCommerce gérés par Elementor (non stylisés ici)
 * - Ciblage renforcé bouton connexion
 * - Border-radius uniformisé tous inputs
 */

/* ============================================================================
   1. VARIABLES CSS (Design Tokens)
   ========================================================================= */

:root {
    /* === COULEURS === */
    
    /* COULEURS PRINCIPALES */
    --dm-auth-primary: #2c3e50;           /* Boutons, liens actifs */
    --dm-auth-primary-hover: #1a252f;     /* Hover boutons */
    
    /* COULEURS BACKGROUNDS */
    --dm-auth-background: #ffffff;        /* ← CRITIQUE : Fond inputs (DOIT être blanc) */
    --dm-auth-secondary: #ecf0f1;         /* Backgrounds secondaires */
    
    /* COULEURS BORDURES */
    --dm-auth-border: #dfe6e9;            /* Bordures inputs normales */
    --dm-auth-border-focus: #3498db;      /* Bordures inputs focus */
    
    /* COULEURS ÉTATS */
    --dm-auth-error: #e74c3c;             /* Messages erreur */
    --dm-auth-error-bg: #fadbd8;          /* Background erreur */
    --dm-auth-success: #27ae60;           /* Messages succès */
    --dm-auth-success-bg: #d4edda;        /* Background succès */
    --dm-auth-info: #3498db;              /* Messages info */
    --dm-auth-info-bg: #d6eaf8;           /* Background info */
    
    /* COULEURS TEXTE */
    --dm-auth-text: #2c3e50;              /* Texte principal */
    --dm-auth-text-light: #7f8c8d;        /* Texte secondaire */
    
    /* COULEURS DÉSACTIVÉES */
    --dm-auth-disabled: #95a5a6;          /* États désactivés */
    
    /* Typographie */
    --dm-auth-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --dm-auth-font-size-base: 16px;
    --dm-auth-font-size-small: 14px;
    --dm-auth-font-size-error: 14px;
    --dm-auth-font-weight-normal: 400;
    --dm-auth-font-weight-medium: 500;
    --dm-auth-font-weight-bold: 600;
    --dm-auth-line-height: 1.5;
    
    /* Espacements */
    --dm-auth-spacing-xs: 8px;
    --dm-auth-spacing-sm: 12px;
    --dm-auth-spacing-md: 16px;
    --dm-auth-spacing-lg: 24px;
    --dm-auth-spacing-xl: 32px;
    
    /* Dimensions */
    --dm-auth-input-height: 48px;
    --dm-auth-input-padding-x: 16px;
    --dm-auth-button-height: 48px;
    --dm-auth-button-padding-x: 32px;
    --dm-auth-border-radius: 8px;
    --dm-auth-border-radius-sm: 4px;
    --dm-auth-border-width: 1px;
    
    /* Transitions */
    --dm-auth-transition: all 0.2s ease-in-out;
    
    /* Ombres */
    --dm-auth-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --dm-auth-shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --dm-auth-shadow-focus: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* ============================================================================
   2. RESET & BASE
   ========================================================================= */

/* Reset Elementor potentiel */
.dm-auth-page--login *,
.dm-auth-page--register *,
.dm-auth-page--lost-password * {
    box-sizing: border-box;
}

/* Container principal */
.dm-auth-page--login .woocommerce,
.dm-auth-page--register .woocommerce,
.dm-auth-page--lost-password .woocommerce {
    font-family: var(--dm-auth-font-family);
    font-size: var(--dm-auth-font-size-base);
    line-height: var(--dm-auth-line-height);
    color: var(--dm-auth-text);
}

/* ============================================================================
   3. LAYOUT & STRUCTURE
   ========================================================================= */

/* Formulaire principal */
.dm-auth-page--login .woocommerce-form-login,
.dm-auth-page--register .woocommerce-form-register,
.dm-auth-page--lost-password .woocommerce-ResetPassword {
    max-width: 100%;
    padding: var(--dm-auth-spacing-xl);
    background: var(--dm-auth-background);
    border-radius: var(--dm-auth-border-radius);
    box-shadow: var(--dm-auth-shadow-md);
}

/* Ligne de formulaire (contient label + input) */
.dm-auth-page--login .woocommerce-form-row,
.dm-auth-page--register .woocommerce-form-row,
.dm-auth-page--lost-password .woocommerce-form-row {
    margin-bottom: var(--dm-auth-spacing-lg);
    position: relative;
}

/* Dernière ligne : pas de margin bottom */
.dm-auth-page--login .woocommerce-form-row:last-of-type,
.dm-auth-page--register .woocommerce-form-row:last-of-type,
.dm-auth-page--lost-password .woocommerce-form-row:last-of-type {
    margin-bottom: 0;
}

/* ============================================================================
   4. FORMULAIRES (inputs, labels, boutons)
   ========================================================================= */

/* --- 4.1 LABELS --- */

.dm-auth-page--login label,
.dm-auth-page--register label,
.dm-auth-page--lost-password label {
    display: block;
    margin-bottom: var(--dm-auth-spacing-xs);
    font-size: var(--dm-auth-font-size-base);
    font-weight: var(--dm-auth-font-weight-medium);
    color: var(--dm-auth-text);
    cursor: pointer;
    transition: var(--dm-auth-transition);
}

/* Astérisque obligatoire */
.dm-auth-page--login label .required,
.dm-auth-page--register label .required,
.dm-auth-page--lost-password label .required {
    color: var(--dm-auth-error);
    margin-left: 2px;
}

/* Label focus (quand input associé est focus) */
.dm-auth-page--login .woocommerce-Input:focus + label,
.dm-auth-page--register .woocommerce-Input:focus + label,
.dm-auth-page--lost-password .woocommerce-Input:focus + label {
    color: var(--dm-auth-primary);
}

/* --- 4.2 INPUTS (text, email, password) --- */

/* CIBLAGE RENFORCÉ - Tous les types d'inputs */
.dm-auth-page--login .woocommerce-Input,
.dm-auth-page--login input[type="text"],
.dm-auth-page--login input[type="email"],
.dm-auth-page--login input[type="password"],
.dm-auth-page--register .woocommerce-Input,
.dm-auth-page--register input[type="text"],
.dm-auth-page--register input[type="email"],
.dm-auth-page--register input[type="password"],
.dm-auth-page--lost-password .woocommerce-Input,
.dm-auth-page--lost-password input[type="text"],
.dm-auth-page--lost-password input[type="email"],
.dm-auth-page--lost-password input[type="password"] {
    width: 100% !important;
    height: var(--dm-auth-input-height) !important;
    padding: 0 var(--dm-auth-input-padding-x) !important;
    font-family: var(--dm-auth-font-family) !important;
    font-size: var(--dm-auth-font-size-base) !important;
    font-weight: var(--dm-auth-font-weight-normal) !important;
    color: var(--dm-auth-text) !important;
    background-color: var(--dm-auth-background) !important;
    border: var(--dm-auth-border-width) solid var(--dm-auth-border) !important;
    border-radius: var(--dm-auth-border-radius) !important; /* UNIFORMISÉ */
    outline: none !important;
    transition: var(--dm-auth-transition) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Input - Placeholder */
.dm-auth-page--login .woocommerce-Input::placeholder,
.dm-auth-page--login input::placeholder,
.dm-auth-page--register .woocommerce-Input::placeholder,
.dm-auth-page--register input::placeholder,
.dm-auth-page--lost-password .woocommerce-Input::placeholder,
.dm-auth-page--lost-password input::placeholder {
    color: var(--dm-auth-text-light);
    opacity: 0.6;
}

/* Input - Hover */
.dm-auth-page--login .woocommerce-Input:hover:not(:disabled),
.dm-auth-page--login input:hover:not(:disabled),
.dm-auth-page--register .woocommerce-Input:hover:not(:disabled),
.dm-auth-page--register input:hover:not(:disabled),
.dm-auth-page--lost-password .woocommerce-Input:hover:not(:disabled),
.dm-auth-page--lost-password input:hover:not(:disabled) {
    border-color: var(--dm-auth-border-focus) !important;
}

/* Input - Focus */
.dm-auth-page--login .woocommerce-Input:focus,
.dm-auth-page--login input:focus,
.dm-auth-page--register .woocommerce-Input:focus,
.dm-auth-page--register input:focus,
.dm-auth-page--lost-password .woocommerce-Input:focus,
.dm-auth-page--lost-password input:focus {
    border-color: var(--dm-auth-border-focus) !important;
    box-shadow: var(--dm-auth-shadow-focus) !important;
}

/* Input - Disabled */
.dm-auth-page--login .woocommerce-Input:disabled,
.dm-auth-page--login input:disabled,
.dm-auth-page--register .woocommerce-Input:disabled,
.dm-auth-page--register input:disabled,
.dm-auth-page--lost-password .woocommerce-Input:disabled,
.dm-auth-page--lost-password input:disabled {
    background-color: var(--dm-auth-secondary) !important;
    border-color: var(--dm-auth-disabled) !important;
    color: var(--dm-auth-disabled) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Input - État erreur (si champ invalide) */
.dm-auth-page--login .woocommerce-invalid .woocommerce-Input,
.dm-auth-page--login .woocommerce-invalid input,
.dm-auth-page--register .woocommerce-invalid .woocommerce-Input,
.dm-auth-page--register .woocommerce-invalid input,
.dm-auth-page--lost-password .woocommerce-invalid .woocommerce-Input,
.dm-auth-page--lost-password .woocommerce-invalid input {
    border-color: var(--dm-auth-error) !important;
}

/* Input - État succès (validation côté client si implémenté) */
.dm-auth-page--login .woocommerce-validated .woocommerce-Input,
.dm-auth-page--login .woocommerce-validated input,
.dm-auth-page--register .woocommerce-validated .woocommerce-Input,
.dm-auth-page--register .woocommerce-validated input,
.dm-auth-page--lost-password .woocommerce-validated .woocommerce-Input,
.dm-auth-page--lost-password .woocommerce-validated input {
    border-color: var(--dm-auth-success) !important;
}

/* --- 4.2.1 FIX AUTOFILL CHROME/SAFARI --- */

/* Supprime le background jaune/bleu bizarre de Chrome/Safari lors de l'autofill */
.dm-auth-page--login input:-webkit-autofill,
.dm-auth-page--login input:-webkit-autofill:hover,
.dm-auth-page--login input:-webkit-autofill:focus,
.dm-auth-page--login input:-webkit-autofill:active,
.dm-auth-page--register input:-webkit-autofill,
.dm-auth-page--register input:-webkit-autofill:hover,
.dm-auth-page--register input:-webkit-autofill:focus,
.dm-auth-page--register input:-webkit-autofill:active,
.dm-auth-page--lost-password input:-webkit-autofill,
.dm-auth-page--lost-password input:-webkit-autofill:hover,
.dm-auth-page--lost-password input:-webkit-autofill:focus,
.dm-auth-page--lost-password input:-webkit-autofill:active {
    /* Technique : Utiliser une transition très longue pour "écraser" le style autofill */
    -webkit-box-shadow: 0 0 0 1000px var(--dm-auth-background) inset !important;
    box-shadow: 0 0 0 1000px var(--dm-auth-background) inset !important;
    -webkit-text-fill-color: var(--dm-auth-text) !important;
    caret-color: var(--dm-auth-text) !important;
    border: var(--dm-auth-border-width) solid var(--dm-auth-border) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Autofill - Focus state */
.dm-auth-page--login input:-webkit-autofill:focus,
.dm-auth-page--register input:-webkit-autofill:focus,
.dm-auth-page--lost-password input:-webkit-autofill:focus {
    border-color: var(--dm-auth-border-focus) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--dm-auth-background) inset, var(--dm-auth-shadow-focus) !important;
    box-shadow: 0 0 0 1000px var(--dm-auth-background) inset, var(--dm-auth-shadow-focus) !important;
}

/* Firefox autofill (moins problématique mais on corrige aussi) */
.dm-auth-page--login input:-moz-autofill,
.dm-auth-page--register input:-moz-autofill,
.dm-auth-page--lost-password input:-moz-autofill {
    background-color: var(--dm-auth-background) !important;
    color: var(--dm-auth-text) !important;
}

/* --- 4.3 BOUTONS --- */

/* CIBLAGE ULTRA-RENFORCÉ pour bouton connexion */
.dm-auth-page--login .woocommerce-Button,
.dm-auth-page--login button[type="submit"],
.dm-auth-page--login input[type="submit"],
.dm-auth-page--login .woocommerce-form-login__submit,
.dm-auth-page--login button[name="login"],
.dm-auth-page--register .woocommerce-Button,
.dm-auth-page--register button[type="submit"],
.dm-auth-page--register input[type="submit"],
.dm-auth-page--register button[name="register"],
.dm-auth-page--lost-password .woocommerce-Button,
.dm-auth-page--lost-password button[type="submit"],
.dm-auth-page--lost-password input[type="submit"] {
    display: inline-block !important;
    width: 100% !important;
    height: var(--dm-auth-button-height) !important;
    padding: 0 var(--dm-auth-button-padding-x) !important;
    font-family: var(--dm-auth-font-family) !important;
    font-size: var(--dm-auth-font-size-base) !important;
    font-weight: var(--dm-auth-font-weight-bold) !important;
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    background-color: var(--dm-auth-primary) !important;
    background-image: none !important; /* Supprimer gradients éventuels */
    border: none !important;
    border-radius: var(--dm-auth-border-radius) !important;
    cursor: pointer !important;
    transition: var(--dm-auth-transition) !important;
    line-height: var(--dm-auth-button-height) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important; /* Reset box-shadow initial */
}

/* Bouton - Hover */
.dm-auth-page--login .woocommerce-Button:hover:not(:disabled),
.dm-auth-page--login button[type="submit"]:hover:not(:disabled),
.dm-auth-page--login input[type="submit"]:hover:not(:disabled),
.dm-auth-page--login .woocommerce-form-login__submit:hover:not(:disabled),
.dm-auth-page--login button[name="login"]:hover:not(:disabled),
.dm-auth-page--register .woocommerce-Button:hover:not(:disabled),
.dm-auth-page--register button[type="submit"]:hover:not(:disabled),
.dm-auth-page--register input[type="submit"]:hover:not(:disabled),
.dm-auth-page--register button[name="register"]:hover:not(:disabled),
.dm-auth-page--lost-password .woocommerce-Button:hover:not(:disabled),
.dm-auth-page--lost-password button[type="submit"]:hover:not(:disabled),
.dm-auth-page--lost-password input[type="submit"]:hover:not(:disabled) {
    background-color: var(--dm-auth-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--dm-auth-shadow-md) !important;
}

/* Bouton - Focus */
.dm-auth-page--login .woocommerce-Button:focus,
.dm-auth-page--login button[type="submit"]:focus,
.dm-auth-page--login input[type="submit"]:focus,
.dm-auth-page--login .woocommerce-form-login__submit:focus,
.dm-auth-page--login button[name="login"]:focus,
.dm-auth-page--register .woocommerce-Button:focus,
.dm-auth-page--register button[type="submit"]:focus,
.dm-auth-page--register input[type="submit"]:focus,
.dm-auth-page--register button[name="register"]:focus,
.dm-auth-page--lost-password .woocommerce-Button:focus,
.dm-auth-page--lost-password button[type="submit"]:focus,
.dm-auth-page--lost-password input[type="submit"]:focus {
    outline: none !important;
    box-shadow: var(--dm-auth-shadow-focus) !important;
}

/* Bouton - Active (clic) */
.dm-auth-page--login .woocommerce-Button:active,
.dm-auth-page--login button[type="submit"]:active,
.dm-auth-page--login input[type="submit"]:active,
.dm-auth-page--login .woocommerce-form-login__submit:active,
.dm-auth-page--login button[name="login"]:active,
.dm-auth-page--register .woocommerce-Button:active,
.dm-auth-page--register button[type="submit"]:active,
.dm-auth-page--register input[type="submit"]:active,
.dm-auth-page--register button[name="register"]:active,
.dm-auth-page--lost-password .woocommerce-Button:active,
.dm-auth-page--lost-password button[type="submit"]:active,
.dm-auth-page--lost-password input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Bouton - Disabled */
.dm-auth-page--login .woocommerce-Button:disabled,
.dm-auth-page--login button[type="submit"]:disabled,
.dm-auth-page--login input[type="submit"]:disabled,
.dm-auth-page--login .woocommerce-form-login__submit:disabled,
.dm-auth-page--login button[name="login"]:disabled,
.dm-auth-page--register .woocommerce-Button:disabled,
.dm-auth-page--register button[type="submit"]:disabled,
.dm-auth-page--register input[type="submit"]:disabled,
.dm-auth-page--register button[name="register"]:disabled,
.dm-auth-page--lost-password .woocommerce-Button:disabled,
.dm-auth-page--lost-password button[type="submit"]:disabled,
.dm-auth-page--lost-password input[type="submit"]:disabled {
    background-color: var(--dm-auth-disabled) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

/* Bouton - État chargement (loading) */
.dm-auth-page--login .woocommerce-Button.loading::after,
.dm-auth-page--login button.loading::after,
.dm-auth-page--register .woocommerce-Button.loading::after,
.dm-auth-page--register button.loading::after,
.dm-auth-page--lost-password .woocommerce-Button.loading::after,
.dm-auth-page--lost-password button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: var(--dm-auth-spacing-xs);
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dm-auth-spin 0.6s linear infinite;
}

/* --- 4.4 LIENS (mot de passe oublié, créer un compte) --- */

/* Lien général */
.dm-auth-page--login .woocommerce a,
.dm-auth-page--register .woocommerce a,
.dm-auth-page--lost-password .woocommerce a {
    color: var(--dm-auth-primary);
    text-decoration: none;
    font-size: var(--dm-auth-font-size-small);
    font-weight: var(--dm-auth-font-weight-medium);
    transition: var(--dm-auth-transition);
}

/* Lien - Hover */
.dm-auth-page--login .woocommerce a:hover,
.dm-auth-page--register .woocommerce a:hover,
.dm-auth-page--lost-password .woocommerce a:hover {
    color: var(--dm-auth-primary-hover);
    text-decoration: underline;
}

/* Lien - Focus (accessibilité clavier) */
.dm-auth-page--login .woocommerce a:focus,
.dm-auth-page--register .woocommerce a:focus,
.dm-auth-page--lost-password .woocommerce a:focus {
    outline: 2px solid var(--dm-auth-border-focus);
    outline-offset: 2px;
    border-radius: var(--dm-auth-border-radius-sm);
}

/* Lien "Mot de passe oublié ?" spécifique */
.dm-auth-page--login .woocommerce-LostPassword {
    display: block;
    margin-top: var(--dm-auth-spacing-sm);
    text-align: right;
}

.dm-auth-page--login .woocommerce-LostPassword a {
    font-size: var(--dm-auth-font-size-small);
    color: var(--dm-auth-text-light);
}

/* --- 4.5 CHECKBOX / REMEMBER ME --- */

/* Container checkbox */
.dm-auth-page--login .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    margin-top: var(--dm-auth-spacing-md);
    cursor: pointer;
}

/* Checkbox input */
.dm-auth-page--login .woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    margin-right: var(--dm-auth-spacing-xs);
    border: var(--dm-auth-border-width) solid var(--dm-auth-border);
    border-radius: var(--dm-auth-border-radius-sm);
    cursor: pointer;
    transition: var(--dm-auth-transition);
}

/* Checkbox - Focus */
.dm-auth-page--login .woocommerce-form__input-checkbox:focus {
    outline: none;
    box-shadow: var(--dm-auth-shadow-focus);
    border-color: var(--dm-auth-border-focus);
}

/* Checkbox - Checked */
.dm-auth-page--login .woocommerce-form__input-checkbox:checked {
    background-color: var(--dm-auth-primary);
    border-color: var(--dm-auth-primary);
}

/* Label checkbox */
.dm-auth-page--login .woocommerce-form__label-for-checkbox span {
    font-size: var(--dm-auth-font-size-small);
    font-weight: var(--dm-auth-font-weight-normal);
    color: var(--dm-auth-text);
}

/* ============================================================================
   5. RESPONSIVE
   ========================================================================= */

/* --- 5.1 TABLETTE (< 768px) --- */

@media (max-width: 768px) {
    /* Formulaire */
    .dm-auth-page--login .woocommerce-form-login,
    .dm-auth-page--register .woocommerce-form-register,
    .dm-auth-page--lost-password .woocommerce-ResetPassword {
        padding: var(--dm-auth-spacing-lg);
    }
    
    /* Inputs */
    .dm-auth-page--login .woocommerce-Input,
    .dm-auth-page--login input,
    .dm-auth-page--register .woocommerce-Input,
    .dm-auth-page--register input,
    .dm-auth-page--lost-password .woocommerce-Input,
    .dm-auth-page--lost-password input {
        height: 44px !important;
        font-size: 15px !important;
    }
    
    /* Boutons */
    .dm-auth-page--login .woocommerce-Button,
    .dm-auth-page--login button[type="submit"],
    .dm-auth-page--register .woocommerce-Button,
    .dm-auth-page--register button[type="submit"],
    .dm-auth-page--lost-password .woocommerce-Button,
    .dm-auth-page--lost-password button[type="submit"] {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
    }
}

/* --- 5.2 MOBILE (< 480px) --- */

@media (max-width: 480px) {
    /* Formulaire */
    .dm-auth-page--login .woocommerce-form-login,
    .dm-auth-page--register .woocommerce-form-register,
    .dm-auth-page--lost-password .woocommerce-ResetPassword {
        padding: var(--dm-auth-spacing-md);
    }
    
    /* Espacements réduits */
    .dm-auth-page--login .woocommerce-form-row,
    .dm-auth-page--register .woocommerce-form-row,
    .dm-auth-page--lost-password .woocommerce-form-row {
        margin-bottom: var(--dm-auth-spacing-md);
    }
    
    /* Inputs */
    .dm-auth-page--login .woocommerce-Input,
    .dm-auth-page--login input,
    .dm-auth-page--register .woocommerce-Input,
    .dm-auth-page--register input,
    .dm-auth-page--lost-password .woocommerce-Input,
    .dm-auth-page--lost-password input {
        height: 42px !important;
        font-size: 16px !important; /* 16px minimum pour éviter zoom iOS */
        padding: 0 var(--dm-auth-spacing-sm) !important;
    }
    
    /* Boutons */
    .dm-auth-page--login .woocommerce-Button,
    .dm-auth-page--login button[type="submit"],
    .dm-auth-page--register .woocommerce-Button,
    .dm-auth-page--register button[type="submit"],
    .dm-auth-page--lost-password .woocommerce-Button,
    .dm-auth-page--lost-password button[type="submit"] {
        height: 44px !important; /* Minimum 44px pour touch target iOS */
        line-height: 44px !important;
        font-size: 16px !important;
        padding: 0 var(--dm-auth-spacing-md) !important;
    }
    
    /* Labels */
    .dm-auth-page--login label,
    .dm-auth-page--register label,
    .dm-auth-page--lost-password label {
        font-size: 15px;
    }
    
    /* Liens */
    .dm-auth-page--login .woocommerce a,
    .dm-auth-page--register .woocommerce a,
    .dm-auth-page--lost-password .woocommerce a {
        font-size: 14px;
    }
}

/* ============================================================================
   6. ACCESSIBILITÉ
   ========================================================================= */

/* --- 6.1 FOCUS VISIBLE (navigation clavier) --- */

/* Focus visible amélioré pour tous les éléments interactifs */
.dm-auth-page--login *:focus-visible,
.dm-auth-page--register *:focus-visible,
.dm-auth-page--lost-password *:focus-visible {
    outline: 2px solid var(--dm-auth-border-focus);
    outline-offset: 2px;
}

/* --- 6.2 SKIP LINKS (optionnel) --- */

/* Lien "Aller au contenu" pour lecteurs d'écran */
.dm-auth-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dm-auth-primary);
    color: #ffffff;
    padding: var(--dm-auth-spacing-sm) var(--dm-auth-spacing-md);
    text-decoration: none;
    border-radius: var(--dm-auth-border-radius);
    z-index: 100;
}

.dm-auth-skip-link:focus {
    top: 0;
}

/* --- 6.3 SCREEN READER ONLY --- */

/* Classe pour texte visible uniquement par lecteurs d'écran */
.dm-auth-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- 6.4 REDUCED MOTION --- */

/* Respect des préférences utilisateur (accessibilité) */
@media (prefers-reduced-motion: reduce) {
    .dm-auth-page--login *,
    .dm-auth-page--register *,
    .dm-auth-page--lost-password * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   7. ANIMATIONS
   ========================================================================= */

/* --- 7.1 ANIMATION LOADING (bouton) --- */

@keyframes dm-auth-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   8. UTILITAIRES & HELPERS
   ========================================================================= */

/* --- 8.1 ALIGNEMENT TEXTE --- */

.dm-auth-text-center {
    text-align: center;
}

.dm-auth-text-right {
    text-align: right;
}

.dm-auth-text-left {
    text-align: left;
}

/* --- 8.2 MARGES --- */

.dm-auth-mt-sm { margin-top: var(--dm-auth-spacing-sm); }
.dm-auth-mt-md { margin-top: var(--dm-auth-spacing-md); }
.dm-auth-mt-lg { margin-top: var(--dm-auth-spacing-lg); }
.dm-auth-mb-sm { margin-bottom: var(--dm-auth-spacing-sm); }
.dm-auth-mb-md { margin-bottom: var(--dm-auth-spacing-md); }
.dm-auth-mb-lg { margin-bottom: var(--dm-auth-spacing-lg); }

/* --- 8.3 DIVIDER / SEPARATOR --- */

.dm-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--dm-auth-spacing-lg) 0;
    font-size: var(--dm-auth-font-size-small);
    color: var(--dm-auth-text-light);
}

.dm-auth-divider::before,
.dm-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--dm-auth-border);
}

.dm-auth-divider::before {
    margin-right: var(--dm-auth-spacing-sm);
}

.dm-auth-divider::after {
    margin-left: var(--dm-auth-spacing-sm);
}

/* ============================================================================
   9. PRINT STYLES
   ========================================================================= */

@media print {
    /* Masquer formulaires auth en impression */
    .dm-auth-page--login,
    .dm-auth-page--register,
    .dm-auth-page--lost-password {
        display: none;
    }
}



/* ============================================================================
   FIN DU FICHIER CSS
   ========================================================================= */
