{% extends "base.html" %}
{% load i18n static %}

{% block content %}
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6 col-lg-5">
            <div class="card shadow-sm border-0 rounded-3">
                <div class="card-body p-4 text-center">
                    <h3 class="mb-4 fw-bold">{% trans "Two-Factor Authentication" %}</h3>
                    <p class="text-muted mb-4">{% trans "Please choose how you would like to receive your verification code." %}</p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-grid gap-3">
                            <button type="submit" name="method" value="email" class="btn btn-outline-primary btn-lg py-3">
                                <i class="fas fa-envelope me-2"></i> {% trans "Send to Email" %}
                            </button>
                            
                            <button type="submit" name="method" value="whatsapp" class="btn btn-outline-success btn-lg py-3">
                                <i class="fab fa-whatsapp me-2"></i> {% trans "Send to WhatsApp" %}
                            </button>
                        </div>
                    </form>
                    
                    <div class="mt-4">
                        <a href="{% url 'login' %}" class="text-muted text-decoration-none">
                            <i class="fas fa-arrow-left me-1"></i> {% trans "Back to Login" %}
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
