.registration-form {
    width: 100%;
    max-width: 300px;
}

.registration-form__field {
    margin: 0 0 16px;
}

.registration-form__control {
    box-sizing: border-box;
    width: 100%;
}

.registration-form__help {
    display: block;
    margin-top: 4px;
}

.registration-form__errors {
    width: 100%;
    margin: 12px 0;
    padding: 10px;
    box-sizing: border-box;
    color: #b00020;
    background: #fff3f3;
    border: 1px solid #b00020;
    border-radius: 4px;
    font-size: 14px;
}

.registration-form__error:not(:last-child) {
    margin-bottom: 4px;
}

.password-validator {
    display: none;
    width: 100%;
    margin: -8px 0 16px;
    padding: 12px;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    font-size: 14px;
}

.password-validator.is-visible {
    display: block;
}

.password-rule {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-height: 60px;
    margin-bottom: 7px;
    overflow: hidden;
    color: #b00020;
    opacity: 1;
    transition:
        color 200ms ease,
        opacity 350ms ease,
        max-height 350ms ease,
        margin 350ms ease;
}

.password-rule::before {
    content: "☒";
    flex: 0 0 auto;
    color: #b00020;
    font-size: 17px;
    line-height: 1;
}

.password-rule.is-valid {
    color: #137333;
}

.password-rule.is-valid::before {
    content: "☑";
    color: #137333;
}

.password-rule.is-hiding {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
}

.password-rule[hidden] {
    display: none;
}

.password-success {
    display: none;
    color: #137333;
    font-weight: 600;
}

.password-success.is-visible {
    display: block;
}

[data-password-match][hidden] {
    display: none;
}
