/* Controlli sicurezza password */
.pwd-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.pwd-input-wrap .pwd-input,
.pwd-input-wrap input[type="password"],
.pwd-input-wrap input[type="text"].pwd-input {
    width: 100%;
    padding-right: 2.75rem;
}

.pwd-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    transition: color 0.15s ease;
}

.pwd-toggle:hover {
    color: #0061b1;
}

.pwd-rules {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.pwd-rule {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.2rem 0;
    transition: color 0.15s ease;
}

.pwd-rule--idle {
    color: #94a3b8;
}

.pwd-rule--ok {
    color: #16a34a;
}

.pwd-rule--fail {
    color: #dc2626;
}

.pwd-rule-icon {
    font-size: 0.7rem;
    width: 1rem;
    flex-shrink: 0;
}

.pwd-match {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
}

.pwd-match--idle {
    color: #94a3b8;
}

.pwd-match--ok {
    color: #16a34a;
}

.pwd-match--fail {
    color: #dc2626;
}

.pwd-enhanced-group + .pwd-confirm-group {
    margin-top: 0.75rem;
}
