/* Password strength meter, checklist and show/hide toggle - see wwwroot/js/passwordStrength.js. */

.pp-pw-field {
    position: relative;
    display: block;
}

    .pp-pw-field > input {
        padding-right: 34px;
    }

.pp-pw-eye {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 28px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c7a89;
    cursor: pointer;
    border-radius: 4px;
}

    .pp-pw-eye:hover,
    .pp-pw-eye:focus {
        color: #2a6cb0;
        background-color: rgba(42, 108, 176, .08);
        outline: none;
    }

/* Inside a Bootstrap .input-group the toggle is an append button instead. */
.pp-pw-eye.pp-pw-eye-append {
    position: static;
    transform: none;
    width: 38px;
    height: auto;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0 .25rem .25rem 0;
}

.pp-pw {
    margin-top: 6px;
    font-size: 12px;
    color: #4a5a6a;
    font-weight: 400;
}

.pp-pw-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

    .pp-pw-meter span {
        height: 5px;
        border-radius: 3px;
        background-color: #e3e8ee;
        transition: background-color .2s ease;
    }

.pp-pw-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.pp-pw-required {
    color: #7b8794;
    white-space: nowrap;
}

    .pp-pw-required.is-met {
        color: #1e8e3e;
    }

.pp-pw-rules {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 2px 12px;
}

    .pp-pw-rules li {
        display: flex;
        align-items: center;
        gap: 6px;
        line-height: 1.5;
        transition: color .15s ease;
    }

        .pp-pw-rules li i {
            width: 12px;
            text-align: center;
            font-size: 11px;
        }

        .pp-pw-rules li.is-todo { color: #8a96a3; }
        .pp-pw-rules li.is-ok { color: #1e8e3e; }
        .pp-pw-rules li.is-bad { color: #c0392b; }
        .pp-pw-rules li.is-info { color: #7b8794; }

.pp-pw-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

    .pp-pw-actions button {
        border: 1px solid #c9d6e3;
        background-color: #f4f8fc;
        color: #2a6cb0;
        border-radius: 999px;
        padding: 2px 10px;
        font-size: 12px;
        cursor: pointer;
    }

        .pp-pw-actions button:hover {
            background-color: #e3edf8;
        }

        .pp-pw-actions button i {
            margin-right: 3px;
        }

.pp-pw-match {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    min-height: 18px;
}

    .pp-pw-match.is-ok { color: #1e8e3e; }
    .pp-pw-match.is-bad { color: #c0392b; }

/* Dark variant: the translucent black panels of the sign-in, reset and registration pages. */
.pp-pw.is-dark { color: #e8edf2; }
.pp-pw.is-dark .pp-pw-meter span { background-color: rgba(255, 255, 255, .22); }
.pp-pw.is-dark .pp-pw-required { color: #cfd8e1; }
.pp-pw.is-dark .pp-pw-required.is-met,
.pp-pw.is-dark .pp-pw-rules li.is-ok,
.pp-pw-match.is-dark.is-ok { color: #7ee2a0; }
.pp-pw.is-dark .pp-pw-rules li.is-todo,
.pp-pw.is-dark .pp-pw-rules li.is-info { color: #cfd8e1; }
.pp-pw.is-dark .pp-pw-rules li.is-bad,
.pp-pw-match.is-dark.is-bad { color: #ffb4a8; }

.pp-pw.is-dark .pp-pw-actions button {
    background-color: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

    .pp-pw.is-dark .pp-pw-actions button:hover {
        background-color: rgba(255, 255, 255, .22);
    }
