.password-input-group {
    position: relative;
    margin-bottom: 10px;
}

.password-input-group > .form-control {
    width: 100%;
    padding-right: 48px !important;
    margin-bottom: 0 !important;
}

.was-validated .password-input-group > .form-control:valid,
.was-validated .password-input-group > .form-control:invalid {
    padding-right: 72px !important;
    background-position: right 44px center;
}

.password-visibility-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    color: #495057;
    background-color: transparent;
    border: 0;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
}

.password-visibility-toggle:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, 0.04);
}

.password-visibility-toggle:focus-visible {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.password-visibility-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.password-visibility-toggle[aria-pressed="false"] .password-visibility-slash {
    display: none;
}
