{% extends 'base.html' %}
{% load static %}
{% block title %}Passwort ändern{% endblock %}
{% block content %}
    <div class="grid place-content-center h-120 mt-12 mb-12 ">
    <div class="w-80 p-4 m-2 border-blue-600 border-2 rounded-xl shadow-md lg:w-90 dark:text-white">
        <h2 class="text-2xl text-center p-4 font-black">Passwort zurücksetzen</h2>
        <form class="space-y-4" method="post">
            Gib hier deine E-Mail an und erhalte eine E-Mail, um das Passwort zurückzusetzen.
            {% if form.errors %}
            <div class=" items-center text-red-600 font-black overflow-x-auto break-words text-center">
                <ul>
                    {% for field, errors in form.errors.items %}
                        {% for error in errors %}
                            <li>{{ error }}</li>
                        {% endfor %}
                    {% endfor %}
                </ul>
            </div>
            {% endif %}
            {% csrf_token %}

            
        <div class="register">
            {{ form.email.label_tag }}
            <input type="email" name="email" placeholder="E-MAIL" class="dark:text-black" /> 
        </div>
        

            <button class="w-full p-3 rounded-full bg-blue-600 text-white font-black hover:scale-105 transition duration-200" type="submit">Bestätigen</button>
        </form>
       
    </div>
    </div>
{% endblock %}