﻿.password-container {
    position: relative;
    display: block;
}

.password-input {
    padding-right: 40px !important;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 46%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 4px 6px !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    cursor: pointer;
    color: #555;
    line-height: 1;
    box-shadow: none !important;
}

    .password-toggle:hover,
    .password-toggle:focus,
    .password-toggle:active {
        right: 8px;
        top: 46%;
        transform: translateY(-50%);
        margin: 0 !important;
        padding: 4px 6px !important;
        border: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #555;
        box-shadow: none !important;
        outline: none !important;
    }

/* Mode sombre */
.dark-mode .password-toggle,
.dark-mode .password-toggle:hover,
.dark-mode .password-toggle:focus,
.dark-mode .password-toggle:active {
    color: #ccc;
    background: transparent !important;
    background-color: transparent !important;
}

/* Chrome - saisie automatique */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #FFF inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 9999s ease-out 0s;
}

/* Chrome - saisie automatique - mode sombre */
.dark-mode input:-webkit-autofill,
.dark-mode input:-webkit-autofill:hover,
.dark-mode input:-webkit-autofill:focus,
.dark-mode input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #303030 inset !important;
    -webkit-text-fill-color: #CCC !important;
    transition: background-color 9999s ease-out 0s;
}
