{% extends "login_base.html" %}
{% load i18n django_bootstrap5 %}

{% block login_content %}
    <div class="card-body">
      <div class="pt-2 pb-3">
        <h4 class="card-title text-center pb-2 help"> {% trans "Password Reset" %}</h5>  
      </div>
      <p class="text-center text-muted fs-6">{% trans "Enter your email address below, and we'll email instructions for setting a new one." %}</p>
      <form action="{% url 'login:password_reset' %}" method="post" class="mt-4">
        {% csrf_token %}
        {% bootstrap_form form layout='floating' %}
        {% bootstrap_form_errors form type='non_fields' %}
        <div class="d-grid gap-2">
          <button type="submit" class="btn btn-primary">{% trans 'Reset' %}</button>
        </div>
      </form>
    </div>

    <div class="text-center mt-3">
      <a href="{% url 'login:login' %}" class="btn btn-link text-secondary">{% trans 'Back to login' %}</a>
    </div>
    
{% endblock %}