I found a few different question here that explain how to make sure CSS loads properly without the user being logged in: CSS not being applied on non authenticated ASP.NET page.
Why does this problem only happen in the development environment, and not in production? If the problem is that web.config says that non-authenticated users cannot access the css files, then why does it work fine in production? It seems that in web.config should prevent that access in both production and development.