{#
Copyright 2024, 2025 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C.

SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
-#}

{% extends "base.html" %}

{% block content %}
  <header class="page-heading">
    <div class="icon invalid">
      {{ icon.error_solid() }}
    </div>

    <div class="header">
      <h1 class="title">{{ _("mas.recovery.expired.heading") }}</h1>
      <p class="text [&>span]:font-medium">{{ _("mas.recovery.expired.description", email=session.email) }}</p>
    </div>
  </header>

  <div class="flex flex-col gap-6">
    <form class="cpd-form-root" method="POST" action="{{ '/recover/progress/' + session.id | prefix_url }}">
      <input type="hidden" name="csrf" value="{{ csrf_token }}" />

      {{ button.button(text=_("mas.recovery.expired.resend_email"), type="submit") }}
    </form>

    {{ button.link_outline(text=_("action.start_over"), href="/login") }}
  </div>
{% endblock content %}
