{% extends "base.html" %}

{% block title %}Verify 2FA - Finance Tracker{% endblock %}

{% block content %}
<div class="auth-container">
    <div class="glass-card auth-card">
        <h1>🔐 Two-Factor Authentication</h1>
        <p class="subtitle">Enter the code from your authenticator app</p>
        
        <form method="POST" action="{{ url_for('auth.verify_2fa') }}" class="auth-form">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            
            <div class="form-group">
                <label for="token">Authentication Code</label>
                <input type="text" id="token" name="token" required autofocus 
                       pattern="[0-9]{6}" maxlength="6" placeholder="000000"
                       style="font-size: 1.5rem; text-align: center; letter-spacing: 0.5rem;">
            </div>
            
            <button type="submit" class="btn btn-primary">Verify & Login</button>
        </form>
        
        <div class="auth-link">
            <a href="{{ url_for('auth.login') }}">Back to Login</a>
        </div>
    </div>
</div>
{% endblock %}
