{% load static %}
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <title>Mot de passe oublié</title>
    <link rel="stylesheet" href="{% static 'bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'styles.css' %}">
</head>
<body class="container mt-5">
    <div class="p-4 shadow-sm rounded bg-white" style="max-width: 400px; margin:auto;">
        <h2 class="mb-4 text-center" style="color:rgba(255, 157, 0, 0.895);">🔑 Réinitialiser le mot de passe</h2>

        {% if messages %}
            {% for message in messages %}
                <div class="alert alert-info">{{ message }}</div>
            {% endfor %}
        {% endif %}

        <form method="POST">
            {% csrf_token %}
            <div class="mb-3">
                <label for="email">Adresse e-mail</label>
                <input type="email" name="email" class="form-control" placeholder="Entrez votre email" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">Envoyer le lien</button>
        </form>
        <p class="mt-3 text-center">
            <a href="{% url 'login' %}">Retour à la connexion</a>
        </p>
    </div>
</body>
</html>
