html {
    font-size: 1rem;
}

a {
    text-decoration: none;
}

.content {
    min-height: 100vh;
    width: 100vw;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #F1F1F1;
}

.form-block {
    max-width: 466px;
    width: 100%;
    padding: 50px;
    -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    background-color: #FFF;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 50px;
}

.form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.form-block__title {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 138.5%;
    /* identical to box height, or 33px */
}

.form__input-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    gap: 15px 0;
}

.form__input-box .form-label {
    position: absolute;
    top: 50%;
    left: 15px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-transition: .3s all linear;
    -o-transition: .3s all linear;
    transition: .3s all linear;
}

.form-label {
    font-weight: 500;
    line-height: 25px;
    color: var(--dark-grey);
}

span.red {
    color: #D30303;
}

.input {
    border: 1px solid var(--grey-very-light);
    border-radius: var(--border-radius);
    max-width: 366px;
    width: 100%;
    height: 60px;
    padding-left: 15px;
    outline: none;
    color: rgba(66, 66, 66, 1);
}

.input::placeholder {
    font-size: 16px;
    color: rgba(66, 66, 66, 1);
}

.input.no-empty~.form-label {
    opacity: 0;
}

.input:focus-visible {
    border-color: var(--dark-grey);
}

.input:focus-visible+.form-label {
    opacity: 0;
}

.checkbox-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}

.checkbox-label:hover {
    color: var(--dark-blue);
}

.switch-checkbox {
    position: relative;
    border-radius: 4px;
    border: 1px solid var(--grey-very-light);
    height: 22px;
    width: 22px;
    cursor: pointer;
    display: block;
    -webkit-transition: .3s all linear;
    -o-transition: .3s all linear;
    transition: .3s all linear;
    pointer-events: none;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
}

.switch-checkbox::after {
    content: '';
    display: block;
    width: inherit;
    height: inherit;
    -webkit-transition: .3s all linear;
    -o-transition: .3s all linear;
    transition: .3s all linear;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: inherit;
    border-radius: inherit;
    position: absolute;
    top: -1px;
    left: -1px;
}

.checkbox {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.checkbox:checked~.switch-checkbox::after {
    content: url('../img/icon/check.svg');
    background: var(--dark-blue);
}

.checkbox-text {
    font-size: 1rem;
    line-height: 144%;
    color: var(--dark-grey);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-text:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.form__btns {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 40px;
}

.form__btn {
    border: 2px solid var(--dark-blue);
    border-radius: var(--border-radius);
    padding: 15px 30px;
    width: 100%;
    height: 58px;
    cursor: pointer;
    background-color: transparent;
    color: var(--dark-blue);
    font-weight: 700;
    -webkit-transition: .3s all linear;
    -o-transition: .3s all linear;
    transition: .3s all linear;
    position: relative;
    z-index: 1;
    line-height: normal;
}

.form__btn:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.form__btn:active {
    border-color: var(--white);
}

.form-block__forgot {
    font-weight: 500;
    line-height: 144%;
    color: var(--dark-grey);
    -webkit-transition: .3s all linear;
    -o-transition: .3s all linear;
    transition: .3s all linear;
}

.form-block__forgot:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.form-block__desc {
    background: #F5F5F5;
    color: var(--grey-light);
    padding: 20px;
    font-weight: 500;
    font-size: 14px;
    line-height: 145%;
    border-radius: var(--border-radius);
    max-width: 366px;
    width: 100%;
}

.form-block__desc .online-chat {
    color: var(--dark-grey);
    -webkit-transition: color .3s linear;
    -o-transition: color .3s linear;
    transition: color .3s linear;
}

.form-block__desc .online-chat:hover {
    color: var(--dark-blue);
}

.pass-switch {
    position: absolute;
    top: 50%;
    right: 15px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.pass-switch::after {
    content: url('../img/icon/eye.svg');
}

.pass-switch.close::after {
    content: url('../img/icon/eye-close.svg');
}

.comeback-link {
    text-align: center;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
    color: var(--grey-light);
    font-size: 0.875rem;
    text-decoration: underline;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
}

.comeback-link:hover {
    color: var(--dark-blue);
}

.confirm-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 40px;
}

.confirm-block .title {
    font-weight: 700;
    font-size: 24px;
    line-height: 145%;
    text-align: center;
    color: #424242;
    max-width: 1150px;
    width: 100%;
    position: relative;
}

.confirm-block .title::before {
    content: '';
    width: 74px;
    height: 57px;
    background: url("../img/icon/checkmark.svg") center no-repeat;
    position: absolute;
    bottom: 100%;
    margin-bottom: 30px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.confirm-block .form__btn {
    padding: 15px 30px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 50px;
    font-size: 1rem;

}

.form_result {
    background-color: rgba(255, 157, 157, 1);
    height: 60px;
    line-height: 60px;
    border-radius: var(--border-radius);
    color: rgba(66, 66, 66, 1);
    padding-left: 15px;

}

.input-text {
    width: 100%;
    color: rgba(116, 116, 116, 1);
    font-size: 16px;
}

@media (max-width:1200px) {
    .confirm-block {
        gap: 30px;
    }

    .confirm-block .title {
        max-width: 711px;
    }
}

@media (max-width:576px) {
    html {
        font-size: 0.875rem;
    }

    .form-block {
        max-width: 300px;
        padding: 30px 20px;
        gap: 30px;
    }

    .form {
        gap: 20px;
    }

    .form-block__title {
        font-size: 1.125rem;
    }

    .form-block__logo {
        max-width: 218px;
        width: 100%;
        margin: 0 auto;
    }

    .form-block__title {
        text-align: center;
    }

    .input,
    .form_result {
        max-width: 100%;
        height: 47px;
        padding-left: 10px;
    }

    .form_result {
        line-height: 47px;
        font-size: 12px;
    }

    .switch-checkbox {
        width: 18px;
        height: 18px;
    }

    .checkbox-text {
        font-size: 0.875rem;
    }

    .form-block__forgot {
        font-size: 0.875rem;
    }

    .form__btn {
        font-size: 0.875rem;
        height: 48px;
    }

    .form-block__desc {
        max-width: 100%;
        font-size: 0.75rem;
    }

    .confirm-block .title::before {
        width: 56px;
        height: 44px;
        background-size: cover;
    }

    .confirm-block .title {
        font-size: 1.125rem;
        max-width: 260px;
    }

    .confirm-block .form__btn {
        font-size: 0.875rem;
    }

}