
.password-field-wrapper {
    position: relative;
}

/* Tooltip box */
.password-tooltip {
    position: absolute;
    left: 0;
    z-index: 1000;

    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    min-width: 260px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-size: 0.85rem;

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Visible */
.password-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Position ABOVE (default) */
.password-tooltip.top {
    bottom: calc(100% + 10px);
}

.password-tooltip.top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* Position BELOW */
.password-tooltip.bottom {
    top: calc(100% + 10px);
}

.password-tooltip.bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

/* List */
.password-policy {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.password-policy li {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* OK / KO */
.password-policy .ok {
    color: #2e7d32;
}

.password-policy .ko {
    color: #c62828;
}

.password-policy li {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.password-policy li::before {
    content: '✖';
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 50%;

    color: currentColor;
    background: transparent;

    transform: scale(0.8);
    opacity: 0.6;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.password-policy li.ok {
    color: #2e7d32;
}

.password-policy li.ko {
    color: #c62828;
}

.password-policy li.ok::before {
    content: '\2713';
    transform: scale(1);
    opacity: 1;
}

.password-policy li.ko::before {
    content: '\2715';
    transform: scale(0.7);
    opacity: 1;
}

.password-policy li.elt::before {
    content: '-';
    transform: scale(1);
    opacity: 1;
}