{% extends "base.html" %}

{% block title %}{{ _('reset_password') }} - 高可用学习平台{% endblock %}

{% block content %}
<div class="auth-container">
    <div class="auth-form">
        <h2>{{ _('reset_password') }}</h2>
        <form method="post" action="{{ url_for('auth.reset_password_request') }}">
            {{ form.hidden_tag() }}

            <div class="mb-3">
                {{ form.email.label(class="form-label") }}
                {{ form.email(class="form-control") }}
                {% for error in form.email.errors %}
                <span class="error">{{ error }}</span>
                {% endfor %}
            </div>

            <div class="d-flex justify-content-between align-items-center">
                {{ form.submit(class="btn btn-primary") }}
                <a href="{{ url_for('auth.login') }}">{{ _('login') }}</a>
            </div>
        </form>
    </div>
</div>
{% endblock %}