Can you give us some step by step instructions on what did you do in order to replace Apache with Nginx? Note that this is something that we don't support, so it is prone to errors.
By the looks of it, it seems that your site (
http://YOUR-DOMAIN/opencart) is trying to load the assets from
localhost instead of your domain, so you may want to check that.