/* Password Strength Meter & Checklist */

.password-security-box {
    margin: 0 0 var(--s-4) 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-xl);
    padding: var(--s-6);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.password-strength-meter {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
    margin-bottom: var(--s-6);
    overflow: hidden;
    position: relative;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--r-full);
}

.strength-0 .strength-bar {
    width: 0%;
    background: transparent;
}

.strength-1 .strength-bar {
    width: 25%;
    background: #ef4444;
}

.strength-2 .strength-bar {
    width: 50%;
    background: #f59e0b;
}

.strength-3 .strength-bar {
    width: 75%;
    background: #10b981;
}

.strength-4 .strength-bar {
    width: 90%;
    background: #10b981;
}

.strength-5 .strength-bar {
    width: 100%;
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4) var(--s-6);
}

@media (max-width: 580px) {
    .password-requirements {
        grid-template-columns: 1fr;
    }
}

.req-item {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-size: 0.85rem;
    color: var(--c-text-ghost);
    transition: all 0.3s ease;
}

.req-item i {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Dual Icon Logic */
.req-item .icon-met {
    display: none;
}

.req-item.met {
    color: #10b981;
    font-weight: 500;
}

.req-item.met .icon-pending {
    display: none;
}

.req-item.met .icon-met {
    display: block;
    color: #10b981;
    opacity: 1;
    animation: met-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes met-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}