{% extends "base" %}
{% block title %}Log in - {% endblock title %}
{% block main %}
<form method="post">
	<h2>Log in (or <a href="/register">register</a>)</h2>

	{% if failure %}
	<p class="form-error">No account with this username / password combination.</p>
	{% endif %}

	<div class="fields raised">
		<div>
			<p class="heading"><label for="username">Enter your username</label></p>
			<input type="text" id="username" name="username" maxlength="256" placeholder="Woofer!" required autofocus />
		</div>

		<div>
			<p class="heading"><label for="password">Enter your password</label></p>
			<input type="password" id="password" name="password" placeholder="Keep it secret" minlength="8" />
			{% if meta.forgot_password_implemented %}
			<p class="center note"><a href="/password_reset">I forgot my password</a></p>
			{% endif %}
		</div>

	</div>

	<input type="checkbox" name="anti_bot" style="display: none">

	<button type="submit" class="submit">Log in</button>
</form>
{% endblock main %}