{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
    <title>Connexion: SGL</title>
</head>
<body>
    <div class="container-fluid">
        <div class="row d-flex justify-content-center align-items-center vh-100 mt-4">
            <div class="col-11 col-lg-5 border rounded p-2">
                {% if messages %}
                {% for message in messages %}
                <div class="alert alert-danger">{{ message }}</div>
                {% endfor %}
                {% endif %}

                <div style="height: 30px;">
                    <h4 class="text-center">Connexion</h4>
                </div>
                <form action="{% url 'authentification:login' %}" method="post">
                    {% csrf_token %}
                    <div class="form-group mt-2">
                        <label for="username">Nom d'utilisateur :</label>
                        <input type="text" class="form-control" name="username">
                    </div>
                    <div class="form-group mt-2">
                        <label for="password">Mot de passe :</label>
                        <input type="password" class="form-control" name="password">
                    </div>

                    <button type="submit" class="btn btn-primary mt-3 d-block m-auto">Connexion</button>
                </form>
            </div>
        </div>
    </div>
</body>
</html>