{% extends 'core/base.html' %}
{% block title %}System Activation{% endblock %}
{% block topbar_title %}Activate SwiftPOS{% endblock %}
{% block sidebar %}{% endblock %}
{% block topbar %}{% endblock %}

{% block content %}
<div class="container d-flex justify-content-center align-items-center" style="min-height: 100vh;">
    <div class="card shadow-lg border-0" style="width: 100%; max-width: 450px; border-radius: 16px;">
        <div class="card-body p-5">
            <div class="text-center mb-4">
                <div class="mb-3">
                    <i class="fas fa-lock" style="font-size: 3rem; color: #7c3aed;"></i>
                </div>
                <h3 class="fw-bold mb-1">System Activation</h3>
                <p class="text-muted small">Enter the activation code to unlock the system.</p>
            </div>
            
            {% if messages %}
                {% for message in messages %}
                    <div class="alert alert-{{ message.tags }} py-2 text-center" style="border-radius: 10px;">
                        {{ message }}
                    </div>
                {% endfor %}
            {% endif %}

            <form method="post">
                {% csrf_token %}
                <div class="mb-4">
                    <label class="form-label fw-bold text-muted small">Secret Code</label>
                    <input type="password" name="activation_code" class="form-control form-control-lg form-control-bg" 
                           placeholder="Enter activation code" style="border-radius: 12px; letter-spacing: 2px;" required autofocus>
                </div>
                <button type="submit" class="btn btn-primary w-100 btn-lg fw-bold" style="border-radius: 12px; background: #7c3aed; border-color: #7c3aed;">
                    <i class="fas fa-unlock-alt me-2"></i> Activate System
                </button>
            </form>
        </div>
    </div>
</div>
{% endblock %}
