Your need to add the folder location where you have the styles and images inside web.config on this way:
<location path="CSS">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
This allows the user get those files without being authenticated.