{% extends "base.html" %}

{% block title %}Log in{% endblock %}

{% block content %}
<h1>Log in</h1>

{% if error %}
<p style="color: red;">{{ error }}</p>
{% endif %}

<form method="post">
    <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
    <p>
        <label for="username">Username:</label><br>
        <input type="text" id="username" name="username" required autofocus>
    </p>
    <p>
        <label for="password">Password:</label><br>
        <input type="password" id="password" name="password" required>
    </p>
    <p>
        <input type="submit" value="Log in">
    </p>
</form>
{% endblock %}
