<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Alica - Connexion</title>
    <link rel="stylesheet" type="text/css" href="{{dir}}/public/css/connexion.css">
</head>
<body>

{% if msg %}
<p>{{msg}}</p>
{% endif %}

<div class="container">
    <form action="{{dir}}/connection" method="POST">
        <h3>Connexion</h3>
        <div class="CadreInput">
            <span>Identifiant</span>
            <div class="box">
                <div class="icon">
                    <ion-icon name="person"></ion-icon>
                </div>
                <input type="text" name="email" required>
            </div>
        </div>
        <div class="CadreInput">
            <span>Mot de passe</span>
            <div class="box">
                <div class="icon">
                    <ion-icon name="lock-closed"></ion-icon>
                </div>
                <input type="password" name="password" required>
            </div>
        </div>
        <a href="#" class="forgot">Mot de passe oublié ?</a>
        <div class="CadreInput">
            <div class="box">
                <input type="submit" value="Se connecter">
            </div>
        </div>
    </form>
    <div class="CadreInput">
        <div class="box">
            <a href="{{dir}}/inscription" class="other">S'inscrire</a>
        </div>
    </div>
    {% if dVueErreur is not empty %}
    <div class="CadreInput">
        <div class="box">
            <div class="error">
                <ul>
                    {% for erreur in dVueErreur %}
                    <li>{{ erreur }}</li>
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>
    {% endif %}
</div>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>