{% extends "base.html" %}
{% block title %}Verify Image — SooSeF{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-lg-8">
        <div class="card bg-dark border-secondary">
            <div class="card-header">
                <h5 class="mb-0"><i class="bi bi-search me-2 text-info"></i>Verify Image</h5>
            </div>
            <div class="card-body">
                <p class="text-muted">
                    Check an image against the local attestation log. Uses SHA-256 for exact matching
                    and perceptual hashes (pHash, dHash) for robustness against compression and resizing.
                </p>

                <form method="POST" enctype="multipart/form-data">
              <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
                    <div class="mb-4">
                        <label for="image" class="form-label"><i class="bi bi-image me-1"></i>Image to Verify</label>
                        <input type="file" class="form-control" name="image" id="image"
                               accept="image/png,image/jpeg,image/webp,image/tiff,image/bmp" required>
                        <div class="form-text">Upload the image you want to verify against known attestations.</div>
                    </div>

                    <button type="submit" class="btn btn-info btn-lg w-100">
                        <i class="bi bi-search me-2"></i>Verify Image
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
