/* Sélecteurs préfixés par "form" pour passer devant "main form div" de register.css */
form .pwd-strength {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    margin-top: 0.5em;
    font-size: 0.85em;
    text-align: left;
}

form .pwd-strength .pwd-strength-hint {
    margin: 0;
    opacity: 0.85;
}

form .pwd-strength .pwd-strength-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(127, 127, 127, 0.25);
    overflow: hidden;
}

form .pwd-strength .pwd-strength-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 3px;
    background-color: #dc3545;
    transition: width 0.25s ease, background-color 0.25s ease;
}

form .pwd-strength.is-medium .pwd-strength-fill {
    background-color: #fd7e14;
}

form .pwd-strength.is-strong .pwd-strength-fill {
    background-color: #198754;
}

form .pwd-strength .pwd-strength-rules {
    list-style: none;
    margin: 0;
    padding: 0;
}

form .pwd-strength .pwd-strength-rules li::before {
    content: "✗";
    display: inline-block;
    width: 1.2em;
    color: #dc3545;
    font-weight: bold;
}

form .pwd-strength .pwd-strength-rules li.is-valid::before {
    content: "✓";
    color: #198754;
}

form .pwd-strength .pwd-strength-rules li.is-info::before {
    content: "•";
    color: inherit;
}

/* Erreurs affichées sous chaque champ d'adresse */
form .address-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

form .address-field div {
    width: auto;
}

form .address-field input {
    width: 100%;
    margin: 0;
}

form .address-field .errorlist {
    list-style: none;
    margin: 0.2em 0 0;
    padding: 0;
}
