.gv-password-meter,
.gv-password-match {
    width: 100%;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.35;
}

.gv-password-meter {
    display: grid;
    gap: 5px;
}

.gv-password-bar {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, .22);
}

.gv-password-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width .18s ease, background-color .18s ease;
}

.gv-password-meter small {
    min-height: 15px;
}

.gv-password-meter.is-empty {
    display: none;
}

.gv-password-meter.is-weak small,
.gv-password-match.is-mismatch {
    color: #dc2626;
}

.gv-password-meter.is-medium small {
    color: #f97316;
}

.gv-password-meter.is-strong small,
.gv-password-match.is-match {
    color: #16a34a;
}

.gv-password-meter.is-weak .gv-password-bar span {
    width: 34%;
    background: #ef4444;
}

.gv-password-meter.is-medium .gv-password-bar span {
    width: 67%;
    background: #f97316;
}

.gv-password-meter.is-strong .gv-password-bar span {
    width: 100%;
    background: #16a34a;
}

.gv-password-match.is-empty {
    display: none;
}

input.gv-password-weak,
input.gv-password-mismatch {
    border-color: #ef4444 !important;
}

input.gv-password-medium {
    border-color: #f97316 !important;
}

input.gv-password-strong,
input.gv-password-match {
    border-color: #16a34a !important;
}

input.gv-password-weak:focus,
input.gv-password-mismatch:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

input.gv-password-medium:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .12) !important;
}

input.gv-password-strong:focus,
input.gv-password-match:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12) !important;
}

body.admin-dark-mode-active .gv-password-bar,
html.admin-dark-mode-active .gv-password-bar,
.user-dark-preload .gv-password-bar {
    background: rgba(148, 163, 184, .18);
}
