.first-access-password-feedback {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    padding: 1rem;
    box-shadow:
        0 20px 40px -34px rgba(15, 23, 42, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.first-access-password-feedback::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: linear-gradient(180deg, #ef4444,#f9ce1d, #14b8a6);
    opacity: 0.9;
}

.first-access-password-feedback::after {
    content: '';
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
}

.first-access-password-feedback__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 0.35rem;
}

.first-access-password-feedback__eyebrow {
    display: block;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.1;
}

.first-access-password-feedback__meter {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    margin: 0.85rem 0 0.95rem;
    padding-left: 0.35rem;
}

.first-access-password-feedback__segment {
    height: 0.42rem;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.first-access-password-feedback__strength {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ef4444;
}

.first-access-password-feedback__badge {
    flex: 0 0 auto;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    padding: 0.34rem 0.65rem;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.first-access-password-feedback__rules {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.52rem;
    padding-left: 0.35rem;
}

.first-access-password-feedback__rule {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    transition: color 180ms ease, transform 180ms ease;
}

.first-access-password-feedback__rule-icon {
    display: inline-flex;
    width: 1.12rem;
    height: 1.12rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #ffffff;
    color: transparent;
    font-size: 0;
    line-height: 1;
    text-align: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.first-access-password-feedback__rule-icon::before {
    content: '';
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #93c5fd;
    transition: background-color 180ms ease, transform 180ms ease;
}

.first-access-password-feedback__rule.is-valid {
    color: #0f766e;
}

.first-access-password-feedback__rule.is-valid .first-access-password-feedback__rule-icon {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.11);
}

.first-access-password-feedback__rule.is-valid .first-access-password-feedback__rule-icon::before {
    width: 0.55rem;
    height: 0.34rem;
    border: solid #0f766e;
    border-width: 0 0 2px 2px;
    border-radius: 0;
    background: transparent;
    transform: translateY(-1px) rotate(-45deg);
}

.first-access-password-feedback[data-score="1"] .first-access-password-feedback__strength {
    color: #ef4444;
}

.first-access-password-feedback[data-score="2"] .first-access-password-feedback__strength {
    color: #f9ce1d;
}

.first-access-password-feedback[data-score="3"] .first-access-password-feedback__strength {
    color: #0f766e;
}

.first-access-password-feedback[data-score="1"] .first-access-password-feedback__segment:nth-child(-n+1) {
    background: #ef4444;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.first-access-password-feedback[data-score="2"] .first-access-password-feedback__segment:nth-child(-n+2) {
    background: #f9ce1d;
    box-shadow: 0 8px 18px rgba(249, 206, 29, 0.18);
    transform: translateY(-1px);
}

.first-access-password-feedback[data-score="3"] .first-access-password-feedback__segment:nth-child(-n+3) {
    background: #14b8a6;
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.2);
    transform: translateY(-1px);
}

@media (max-width: 520px), (min-width: 901px) and (max-width: 1180px) {
    .first-access-password-feedback__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .first-access-password-feedback__badge {
        align-self: flex-start;
    }
}
