{% extends 'base.html' %}

{% block content %}
<article class="panel">
    <h1>Log in</h1>
    {% if form.errors %}
    <p class="error">Your username and password didn't match. Please try again.</p>
    {% endif %}

    <form method="post" action="{% url 'account_login' %}">
        {% csrf_token %}
        {{ form.as_p }}
        <p>
            <small><a href="{% url 'account_reset_password' %}">Forgot your password?</a></small>
        </p>
        <p>
            <input type="submit" value="Login" class="action-button">
            <input type="hidden" name="next" value="{{ next }}">
        </p>
    </form>
</article>
{% endblock %}
