.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.pw-input-wrap input {
    width: 100%;
    padding-right: 4.75rem;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    transform: translateY(-50%);
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
    opacity: 1;
    outline: none;
}

.pw-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.pw-requirements {
    margin: 0 0 1.1rem;
    text-align: left;
}

.pw-requirements-title {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
}

.pw-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.pw-rule {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    opacity: 0.78;
}

.pw-mark {
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    opacity: 0.45;
    background: transparent;
}

.pw-rule.is-pending .pw-mark::before {
    content: "";
}

.pw-rule.is-met {
    opacity: 1;
}

.pw-rule.is-met .pw-mark {
    opacity: 1;
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
}

.pw-rule.is-met .pw-mark::before {
    content: "";
    display: block;
    width: 0.35rem;
    height: 0.55rem;
    margin: 0.12rem auto 0;
    border-right: 2px solid #10b981;
    border-bottom: 2px solid #10b981;
    transform: rotate(45deg);
}

.pw-rule.is-met .pw-rule-label {
    font-weight: 500;
}

@media (max-width: 430px) {
    .pw-toggle {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .pw-input-wrap input {
        min-height: 2.75rem;
    }
}
