<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>Iki Adimli Dogrulama</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body { background: #f8fafc; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
        .card { max-width: 420px; width: 100%; border-radius: 14px; }
    </style>
</head>
<body>
    <div class="card shadow-sm">
        <div class="card-body p-4">
            <h4 class="mb-2">Iki Adimli Dogrulama</h4>
            <p class="text-muted">Google Authenticator kodunu girin.</p>

            @if ($errors->any())
                <div class="alert alert-danger">{{ $errors->first() }}</div>
            @endif

            <form method="POST" action="{{ route('finance.2fa.challenge.verify') }}">
                @csrf
                <div class="mb-3">
                    <label class="form-label">6 haneli kod</label>
                    <input type="text" name="code" class="form-control" required placeholder="123456" autofocus>
                </div>
                <button type="submit" class="btn btn-primary w-100">Dogrula</button>
            </form>
        </div>
    </div>
</body>
</html>
