/* Styles spécifiques pour PasswordField sur mobile */

/* Amélioration de la visibilité de l'icône œil sur mobile */
.password-field-toggle {
    /* Zone tactile minimale recommandée par Apple/Google */
    min-width: 44px !important;
    min-height: 44px !important;
    
    /* Amélioration de la visibilité */
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    
    /* Couleur de l'icône plus visible */
    color: #374151 !important; /* gray-700 */
}

.password-field-toggle:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    color: #1f2937 !important; /* gray-800 */
}

/* Amélioration de l'icône sur mobile */
.password-field-toggle .icon {
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Styles spécifiques pour iOS */
@supports (-webkit-touch-callout: none) {
    .password-field-toggle {
        /* Améliorations spécifiques iOS */
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

/* Styles spécifiques pour Android */
@supports not (-webkit-touch-callout: none) {
    .password-field-toggle {
        /* Améliorations spécifiques Android */
        touch-action: manipulation !important;
    }
}

/* Amélioration de la visibilité sur petits écrans */
@media (max-width: 768px) {
    .password-field-toggle {
        /* Zone tactile encore plus grande sur mobile */
        min-width: 48px !important;
        min-height: 48px !important;
        
        /* Icône plus visible */
        font-size: 24px !important;
    }
    
    .password-field-toggle .icon {
        font-size: 24px !important;
    }
}

/* Amélioration de la visibilité sur très petits écrans */
@media (max-width: 480px) {
    .password-field-toggle {
        min-width: 52px !important;
        min-height: 52px !important;
    }
    
    .password-field-toggle .icon {
        font-size: 26px !important;
    }
}

/* Animation de feedback tactile */
.password-field-toggle:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Amélioration du contraste pour l'accessibilité */
.password-field-toggle:focus {
    outline: 2px solid #3b82f6 !important; /* blue-500 */
    outline-offset: 2px !important;
}

/* État actif (mot de passe visible) */
.password-field-toggle[aria-pressed="true"] {
    background-color: #dbeafe !important; /* blue-100 */
    border-color: #3b82f6 !important; /* blue-500 */
    color: #1d4ed8 !important; /* blue-700 */
}
