
{% extends "layout.html" %}
{% block content %}
    <div class="row mt-5 justify-content-center">
        <div class="col-sm-12 col-md-6 col-lg-4">
            <form action="/login" method="post">
                {% if context.error %}
                    <div class="text-danger text-center p-4">
                        {{ context.error }}
                    </div>
                {% endif %}
                <div class="mb-3">
                    <input type="text" class="form-control" id="username" name="username" placeholder="Username">
                </div>
                <div class="mb-3">
                    <input type="password" class="form-control" id="password" name="password" placeholder="Password">
                </div>
                <div class="text-center">
                    <button type="submit" class="btn btn-lg btn-primary w-100">Login</button>
                </div>
            </form>
        </div>
    </div>
{% endblock %}
