{% extends 'layouts/login.html' %}
{% import 'macros/form.html' as f with context %}

{% block title %}Reset your password{% endblock %}

{% block body %}
  <div class="container">
    <div class="row">
      <div class="col-md-6 offset-md-3 card bg-light">
        {% call f.form_tag('user.begin_password_reset') %}
          <h2 class="mt-2 mb-4">Reset your password</h2>
          <p>
            We'll send you an email to reset your password.
          </p>

          {% call f.form_group(form.identity, autofocus='autofocus') %}
          {% endcall %}

          <div class="row mb-3">
            <div class="col-md-6">
              <button type="submit" class="btn btn-primary btn-block">
                Continue
              </button>
            </div>
            <div class="col-md-6">
              <a href="{{ url_for('user.login') }}"
                  class="btn btn-outline-secondary btn-block">
                Back to login
              </a>
            </div>
          </div>
        {% endcall %}
      </div>
    </div>
  </div>
{% endblock %}
