{{ template "base.html" . }}

{{ define "content" }}
	<div class="content-block">
		<h1>Please enter your username and password</h1>
		<form method="POST">
			<input type="hidden" name="redirect" value="{{ .RedirectUrl }}" />
			<p class="mb2">
				<label class="db b" for="username">Username</label>
				<input class="db w5" name="username" minlength="3" maxlength="30" type="text" required pattern="^[0-9a-zA-Z][\w-]{2,29}$" />
			</p>

			<p class="mb2">
				<label class="db b" for="password">Password</label>
				<input class="db w5" name="password" minlength="8" type="password" required />
			</p>

			<a href="{{ .ForgotPasswordUrl }}">Forgot your password?</a>
			
			<p class="mt3">
				<input type="submit" value="Log in" />
			</p>
		</form>
	</div>
{{ end }}
