<p>I changed the MembershipProvider in my ASP.net MVC website, and now the stylesheet for the login page isn't referenced correctly. Below is a copy of the forms tag in my web.config if that could be the reason. It looks identical though to the one generated by a new project with the exception of the name and timeout attribute.</p>

<pre><code>&lt;authentication mode="Forms"&gt;
      &lt;forms loginUrl="~/Account/Login" name=".ADAuthCookie" timeout="10" /&gt;
&lt;/authentication&gt;
</code></pre>

<p>When I visit the page now, the link tag for the CSS looks like this:</p>

<pre><code>&lt;link href="../Content/Site.css" rel="stylesheet" type="text/css" /&gt;
</code></pre>

<p>When it <em>should</em> look like this:</p>

<pre><code>&lt;link href="../../Content/Site.css" rel="stylesheet" type="text/css" /&gt;
</code></pre>

I haven't used ASP.NET MVC yet myself, but you could try using
ResolveClientUrl
when writing out the href for your CSS:
```
```
<link href="<%= ResolveClientUrl("../../content/Site.css") %> rel="stylesheet" type="text/css" />
```
```