/* Live password checklist (assets/password-rules.js). */
.yt-pw-group {
    margin-top: -.4rem;
}

.yt-pw-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem 1rem;
    width: 100%;
    margin: .6rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
    line-height: 1.4;
    color: #6b6b6b;
    text-align: left;
}

.yt-pw-rules li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    transition: color .15s ease;
}

/* Empty circle, a tick once the rule is met. */
.yt-pw-rules li::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease;
}

.yt-pw-rules li.is-met {
    color: var(--gt-theme-secondary, #162a28);
}

.yt-pw-rules li.is-met::before {
    border-color: var(--gt-theme-primary, #ff4400);
    background: var(--gt-theme-primary, #ff4400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* Typed but not met yet: the open rules stand out. */
.yt-pw-rules.is-started li:not(.is-met) {
    color: #b3261e;
}
