{% extends "twilio_2fa/_base.html" %}
{% load widget_tweaks %}

{% block content %}
    <div class="row my-4">
        <div class="col-12 text-center">
            Unfortunately, we were not able to verify your identity.
            {% if can_retry %}You can attempt to verify your account again by clicking the button below.
            {% else %}You will not be able to proceed.{% endif %}
        </div>
    </div>
    {% include "twilio_2fa/_messages.html" %}
    {% if can_retry %}
    <div class="row my-5">
        <div class="col-12 col-md-8 m-auto">
            <a href="{% url 'twilio_2fa:start' %}" class="btn btn-lg btn-outline-primary" style="width: 100%">
                <i class="fas fa-redo pe-2"></i>
                Retry Verification
            </a>
        </div>
    </div>
    {% endif %}
    <div class="row">
        <div class="col-12 text-center small text-muted">
            If you feel this was in error or are having difficulties verifying, please contact customer support.<br><br>
            <span class="bg-light p-2">{{ request.session.twilio_2fa_sid|default:"TWILIO_SID_GOES_HERE" }}</span>
        </div>
    </div>
{% endblock %}
