{% extends "base.html" %}
{% load crispy_forms_filters %}
{% load i18n %}
{% block title %}{{ _("Password Reset") }}{% endblock title %}

{% block content %}
<div class="container my-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <!-- Page Header -->
            <div class="text-center mb-4">
                <h1 class="fw-bold">{{ _("Password Reset") }}</h1>
                <p class="text-muted">
                    {{ _("Forgotten your password? Enter your email address below, and we'll send you an email allowing you to reset it.") }}
                </p>
            </div>

            <!-- Password Reset Form -->
            <form method="post" action="{% url 'reset_password' %}" class="needs-validation" novalidate>
                {% csrf_token %}
                {{ form|crispy }}

                <div class="d-grid gap-2 mt-3">
                    <button type="submit" class="btn btn-primary btn-lg">
                        <i class="bi bi-envelope"></i> {{ _("Reset My Password") }}
                    </button>
                </div>
            </form>

            <!-- Contact Info -->
            <div class="text-center mt-4">
                <p class="text-muted">
                    {{ _("Please contact us if you have any trouble resetting your password.") }}
                </p>
            </div>
        </div>
    </div>
</div>
{% endblock %}