{% extends "base.html" %}
{% block content %}
<div class="container mt-5 pt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card-glass p-5 text-center">
                <h2 class="mb-4">Acesso Administrativo</h2>
                <p class="text-muted">Insira sua Private Key para acessar as configurações.</p>
                <form method="post">
                    {% csrf_token %}
                    <div class="mb-4">
                        <input type="password" name="private_key" class="form-control form-control-lg text-center" placeholder="Chave Privada" required>
                    </div>
                    <button type="submit" class="btn btn-brand btn-lg w-100">Acessar Painel</button>
                </form>
                {% if messages %}
                    {% for message in messages %}
                        <div class="alert alert-danger mt-3">{{ message }}</div>
                    {% endfor %}
                {% endif %}
            </div>
        </div>
    </div>
</div>
{% endblock %}
