.auth-container {
    gap: 24px;

    @media (min-width: 1280px) {
        display: flex;
    }

    @media (min-width: 1000px) and (max-width: 1279px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    @media (max-width: 999px) {
        display: grid;
    }
}

.auth-form {
    background: #f0f3f4;
    border: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.2;
    width: 100%;

    @media (min-width: 1280px) {
        min-height: 800px;
    }

    @media (min-width: 1000px) {
        border-radius: 48px;
        gap: 48px;
        max-width: 620px;
        padding: 96px 48px;
    }

    @media (min-width: 1000px) and (max-width: 1279px) {
        min-height: 615px;
    }

    @media (max-width: 999px) {
        border-radius: 24px;
        gap: 24px;
        padding: 48px 24px;
    }

    .auth-form__header {
        color: #343434;
        text-align: center;
        width: 100%;

        h1 {
            font-weight: 700;
            letter-spacing: 0.27px;
            line-height: 1.2;
            margin-bottom: 0;

            @media (min-width: 1000px) {
                font-size: 46px;
                margin-left: -15px;
                margin-right: -15px;
            }

            @media (max-width: 999px) {
                font-size: 24px;
            }
        }

        .description {
            margin-top: 8px;

            @media (min-width: 1000px) {
                font-size: 18px;
            }

            @media (max-width: 999px) {
                font-size: 15px;
            }
        }
    }

    .auth-form__form {
        width: 100%;
    }

    .auth-form__tabs {
        display: flex;
        font-size: 15px;
        gap: 16px;
        margin-bottom: 8px;

        button {
            background: none;
            border: none;
            box-shadow: none;
            color: #f25354;
            font-weight: 500;
            line-height: 1.2;
            padding: 0;

            &.active {
                color: #343434;
            }
        }
    }

    .auth-form__radios {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
        margin-left: -8px;
        margin-right: -8px;

        @media (min-width: 1000px) {
            gap: 16px;
        }

        @media (max-width: 999px) {
            gap: 8px;
        }
    }

    .auth-form__footer {
        color: #343434;
        font-size: 15px;
        text-align: center;
        width: 100%;
    }

    .link {
        border-bottom: none;
        font-weight: 500;

        &.forgot-password {
            font-size: 12px;
        }

        &.back-arrow {
            align-items: center;
            display: inline-flex;
            gap: 8px;
            stroke: #f25354;
            transition: stroke 0.3s;

            svg {
                height: 23px;
                width: 23px;
            }

            &:hover {
                stroke: #d12c2d;
            }
        }
    }

    .submit {
        margin-top: 16px;
        width: 100%;
    }
}

@media (min-width: 1000px) {
    .auth-form.registration {
        gap: 0;
        justify-content: flex-start;
        padding: 48px 48px 96px;
    }

    .auth-form.registration .auth-form__header {
        flex-shrink: 0;
        margin-bottom: 48px;
    }

    .auth-form.registration .auth-form__body {
        flex: 0 0 auto;
    }

    .auth-form.registration .auth-form__footer {
        margin-top: auto;
        padding-top: 48px;
    }
}

.auth-form__row {
    margin-bottom: 8px;
}

.auth-form__success {
    display: none;

    .auth-form__success-icon {
        align-items: center;
        background: rgba(31, 164, 131, 0.2);
        display: flex;
        justify-content: center;

        @media (min-width: 1000px) {
            border-radius: 32px;
            height: 80px;
            width: 80px;
        }

        @media (max-width: 999px) {
            border-radius: 50%;
            height: 50px;
            width: 50px;
        }

        svg {
            @media (min-width: 1000px) {
                height: 40px;
                width: 40px;
            }

            @media (max-width: 999px) {
                height: 20px;
                width: 20px;
            }
        }
    }

    .auth-form__success-text {
        color: #343434;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;

        @media (min-width: 1000px) {
            font-size: 24px;
            margin-top: 56px;
        }

        @media (max-width: 999px) {
            font-size: 16px;
            margin-top: 24px;
        }
    }

    .button {
        font-size: 18px;
        height: auto;
        padding: 13px 24px;

        @media (min-width: 1000px) {
            margin-top: 56px;
        }

        @media (max-width: 999px) {
            margin-top: 24px;
        }
    }

    .link {
        border-bottom: none;
        margin-top: 32px;
    }
}

.auth-form.success {
    .auth-form__header,
    .auth-form__body,
    .auth-form__footer {
        display: none;
    }

    .auth-form__success {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: auto;
        margin-top: auto;
    }
}

.auth-form .input-block-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;

    & + & {
        margin-top: 16px;
    }
}

.profile .errors {
    background: #ffeef3;
    border: 1px solid rgba(248, 40, 90, 0.2);
    border-radius: 100rem;
    color: #f8285a;
    font-size: 15px;
    margin-top: 16px;
    padding: 16px;
    text-align: center;

    &:empty {
        display: none;
    }

    & p {
        margin-bottom: 0;
    }
}

.profile .success-message {
    margin-top: 48px;

    &:empty {
        display: none;
    }
}

.profile .error-text {
    color: #f8285a;
    display: none;
    font-size: 12px;
    margin-top: -4px;
    text-align: right;
    width: 100%;
}

.profile .input.has-error {
    input {
        border-color: #f8285a;
    }

    & + .error-text {
        display: block;
    }
}

.profile .input {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    position: relative;
    width: 100%;

    &:has(textarea) {
        flex-direction: column;
    }

    .button {
        background: none;
        height: 18px;
        padding: 0;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
    }

    .input__title {
        color: #676767;
        display: block;
        font-size: 15px;
        font-weight: 400;
        left: 14px;
        line-height: 120%;
        margin-bottom: 8px;
        max-width: calc(100% - 14px * 2);
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all .35s ease;
        width: 100%;
        z-index: 1;

        @media (max-width: 480px) {
            font-size: 13px;
        }
    }

    &:has(select) .input__title,
    &:has(input[type="text"], input[type="password"], input[type="email"], input[type="phone"]) .input__title {
        overflow: hidden;
        pointer-events: none;
        position: absolute;
        text-overflow: ellipsis;
        top: 50%;
        transform: translateY(-50%);
        transform-origin: top left;
        white-space: nowrap;

        &:has(+ .input-location),
        &:has(+ select),
        &:has(+ input:focus),
        &:has(+ input:not(:placeholder-shown)),
        &:has(+ input:-webkit-autofill) {
            color: #8a8a8a;
            font-size: 11px;
            transform: translateY(-125%);
        }
    }

    &:has(input[type="text"], input[type="password"], input[type="email"], input[type="phone"]):has(input:-webkit-autofill) .input__title,
    &.is-filled:has(input[type="text"], input[type="password"], input[type="email"], input[type="phone"]) .input__title {
        color: #8a8a8a;
        font-size: 11px;
        transform: translateY(-125%);
    }

    .select2-container--default .select2-selection--single {
        background: #ffffff;
        border: 1px solid #bfcbcf;
        border-radius: 12px;
        color: #343434;
        font-size: 15px;
        height: auto;
        line-height: 1.2;
        padding: 20px 14px 7px;
        position: relative;
        transition: all .35s ease;
        width: 100%;

        @media (max-width: 480px) {
            font-size: 13px;
        }
    }

    .select2-container .select2-selection--single .select2-selection__rendered {
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        height: auto;
        line-height: inherit;
        padding: 0;
    }
}

.profile .input__description {
    color: #1fa483;
    font-size: 11px;
    line-height: 1.1;
    margin-top: 2px;
}

.profile .input input {
    background: #ffffff;
    border: 1px solid #bfcbcf;
    border-radius: 12px;
    color: #343434;
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
    padding: 20px 14px 7px;
    position: relative;
    transition: all .35s ease;
    width: 100%;

    @media (max-width: 480px) {
        font-size: 13px;
    }

    &::placeholder {
        color: transparent;
    }

    &:-webkit-autofill {
        animation: profile-input-autofill-start 0s;
    }
}

@keyframes profile-input-autofill-start {
    from,
    to {
        opacity: 1;
    }
}

.profile .input textarea {
    background: #ffffff;
    border: 1px solid #bfcbcf;
    border-radius: 12px;
    color: #343434;
    font-size: 15px;
    line-height: 120%;
    min-height: 48px;
    padding: 17px 14px;
    width: 100%;

    @media (max-width: 480px) {
        font-size: 13px;
    }
}

.profile .input .suggestions-wrapper {
    bottom: 0;
    position: absolute;
    width: 100%;
}

.profile .input .input-location {
    width: 100%;

    .bx-sls .dropdown-block {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .bx-ui-sls-route {
        height: auto;
        padding: 20px 14px 7px !important;
        position: static !important;
    }

    .bx-ui-sls-fake {
        height: auto;
        padding: 20px 14px 7px !important;
    }

    .bx-sls .dropdown-icon {
        display: none;
    }

    .bx-sls .dropdown-fade2white {
        height: 100%;
        right: 0;
        z-index: 5;
    }

    .bx-sls .bx-ui-sls-loader {
        top: 50%;
        transform: translateY(-50%);
    }

    .bx-sls .bx-ui-sls-clear {
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
}

.profile .input-checkbox {
    color: #464646;
    display: flex;
    font-size: 13px;
    gap: 6px;
    width: 100%;

    @media (min-width: 1000px) {
        align-items: center;
    }

    @media (max-width: 999px) {
        align-items: flex-start;
    }

    & a {
        border-bottom: none;
    }
}

.profile .submit {
    font-size: 18px;
    height: auto;
    justify-content: center;
    padding: 13px 24px;
}

.profile .submit:disabled {
    cursor: default;
    opacity: .5;
    pointer-events: none;
}

.velvet-radio {
    align-items: center;
    color: #464646;
    cursor: pointer;
    display: flex;
    gap: 6px;
    line-height: 1.2;

    @media (min-width: 1000px) {
        font-size: 13px;
    }

    @media (max-width: 999px) {
        font-size: 12px;
    }

    input[type="radio"] {
        height: 0;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        width: 0;
    }

    .fake-radio {
        background-color: #ffffff;
        border: 1px solid #bdbdbd;
        border-radius: 100rem;
        flex: 0 0 auto;
        position: relative;
        transition: all .35s ease;

        @media (min-width: 1000px) {
            height: 22px;
            width: 22px;
        }

        @media (max-width: 999px) {
            height: 18px;
            width: 18px;
        }
    }

    .fake-radio::after {
        background-color: #fff;
        border-radius: 100rem;
        content: '';
        left: 50%;
        opacity: 0;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: all .35s ease;

        @media (min-width: 1000px) {
            height: 12px;
            width: 12px;
        }

        @media (max-width: 999px) {
            height: 10px;
            width: 10px;
        }
    }

    input[type="radio"]:checked + .fake-radio {
        background: #f25354;
        border-color: #f25354;
    }

    input[type="radio"]:checked + .fake-radio::after {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    input[type="radio"]:focus-visible + .fake-radio {
        outline: 4px solid rgba(242, 83, 84, 0.2);
    }
}

.profile-tabs {
    background: #f0f3f4;
    border-radius: 100rem;
    display: flex;
    gap: 8px;

    @media (min-width: 1280px) {
        padding: 8px;
    }

    @media (max-width: 1279px) {
        padding: 4px;
    }

    & a {
        border-bottom: none;
        color: inherit;
    }

    .profile-tabs__tab {
        align-items: center;
        background: #f0f3f4;
        border: 1px solid #f0f3f4;
        border-radius: 100rem;
        color: #5b5b5b;
        display: flex;
        font-weight: 700;
        justify-content: center;
        line-height: 1.1;

        @media (min-width: 1280px) {
            font-size: 24px;
            padding: 16px 44px;
        }

        @media (min-width: 1000px) and (max-width: 1279px) {
            font-size: 24px;
            padding: 16px 44px;
        }

        @media (max-width: 999px) {
            font-size: 15px;
            padding: 12px;
        }

        &.active {
            background: #fff;
            border: 1px solid #f9f9f9;
            box-shadow: 0 7px 15px 0 rgba(0, 0, 0, 0.1);
            color: #343434;
        }
    }
}
