{% extends "base.html" %}

{% block title %}Forgot Password | TrustForge{% endblock %}
{% block meta_description %}Request a secure password reset link for your TrustForge account.{% endblock %}

{% block content %}
<section class="py-5 py-lg-6">
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-lg-7 col-xl-6">
        <div class="tf-panel tf-panel-centered tf-auth-card">
          <div class="tf-eyebrow">Password reset</div>
          <h1 class="tf-page-title">{{ auth_page_title }}</h1>
          <p class="tf-page-subtitle">{{ auth_page_description }}</p>
          <form method="post" novalidate class="mt-4">
            {% csrf_token %}
            {% if form.non_field_errors %}
              <div class="alert alert-danger">{{ form.non_field_errors|join:', ' }}</div>
            {% endif %}
            <div class="mb-3">
              <label class="form-label">Work email</label>
              {{ form.email }}
              {% if form.email.errors %}<div class="text-danger small mt-1">{{ form.email.errors|join:', ' }}</div>{% endif %}
            </div>
            <button type="submit" class="btn tf-btn tf-btn-primary w-100">Send reset link</button>
          </form>
          <p class="text-secondary-emphasis small mt-4 mb-0"><a class="tf-inline-link" href="{% url 'login' %}">Back to login</a></p>
        </div>
      </div>
    </div>
  </div>
</section>
{% endblock %}
