{% extends "auth_base.html" %}
{% block title %}Sign in{% endblock %}
{% block page %}
<form action="" method="post" class="sign_in">

{% if error -%}
<div class="error">
{%- if error == 'FAIL' %}Wrong user and/or password.
{%- elif error == 'SUSPENDED' %}Your accoutn has been suspended.{% endif -%}
</div>
{%- endif %}

<label>User<br>
<input type="text" name="login" id="auth_login" value="{{ credentials.login|e }}" 
size="20" maxlength="254" tabindex="1">
</label>

<label>Password<br>
<input type="password" name="password" id="auth_password" 
size="20" maxlength="254" tabindex="2">
</label>

<fieldset>
{% if auth.settings.password_reset -%}
<a href="{{ url_for('auth.reset_password') }}" tabindex="5">Forgot your password?</a>
{%- endif %}
<button type="submit" tabindex="4">Sign in &raquo;</button>
</fieldset> 

</form>
<a href="/" class="exit" tabindex="6">&laquo; Home page</a>
{% endblock %}
