/* === PASSWORD PAGES (set / reset / forgot) === */
/* Shared pieces (cards, fields, buttons, notes) are the lp_ classes in includes/general/general.css. */

.lp_page .pw_narrow {
    max-width: 760px;
    margin: 0 auto;
}

.lp_page .pw_fields {
    display: grid;
    gap: 16px;
}

.lp_page .pw_note_space {
    margin-bottom: 18px;
}

.lp_page .pw_actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Strength meter */
.lp_page .pw_meter {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.lp_page .pw_meter span {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--line);
    transition: background 0.2s;
}

.lp_page .pw_meter.pw_lvl_1 span:nth-child(-n+1) {
    background: var(--r);
}

.lp_page .pw_meter.pw_lvl_2 span:nth-child(-n+2) {
    background: var(--o);
}

.lp_page .pw_meter.pw_lvl_3 span:nth-child(-n+3),
.lp_page .pw_meter.pw_lvl_4 span:nth-child(-n+4) {
    background: var(--g);
}

.lp_page .pw_meter_label {
    min-height: 1.5em;
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--muted);
}

/* What the password needs */
.lp_page .pw_crit_title {
    margin: 18px 0 8px;
    font-size: 12px;
    color: var(--muted);
}

.lp_page .pw_crit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin-top: 4px;
}

.lp_page .pw_crit li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    transition: color 0.15s;
}

.lp_page .pw_crit li i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 50%;
    background: var(--grb);
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
}

.lp_page .pw_crit li.pw_ok {
    color: var(--text);
}

.lp_page .pw_crit li.pw_ok i {
    background: var(--g);
    color: #fff;
}

.lp_page .pw_crit li.pw_no i {
    background: var(--rb);
    color: var(--r);
}

/* After saving */
.lp_page .pw_done {
    padding: 30px 20px;
    text-align: center;
}

.lp_page .pw_done_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--gb);
    color: var(--g);
}

.lp_page .pw_done h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.lp_page .pw_done p {
    margin-top: 4px;
    color: var(--muted);
}

.lp_page .pw_bar {
    max-width: 260px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
}

.lp_page .pw_bar i {
    display: block;
    width: 0;
    height: 100%;
    margin: 0;
    background: var(--pri);
    transition: width 3s linear;
}

.lp_page .pw_bar.pw_run i {
    width: 100%;
}

.lp_page .pw_error {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--r);
}

@media (max-width: 640px) {

    .lp_page .pw_crit {
        grid-template-columns: 1fr;
    }

}
