{% extends 'base.html' %}

{% block title %}Register - Packs{% endblock %}

{% block content %}
<div class="gate-main">
    <div class="gate-card gate-card-wide">
        <h1><i class="fas fa-user-plus"></i> Register</h1>
        <p>Create an account to upload and manage packs.</p>
        {% if form.non_field_errors %}
            {% for error in form.non_field_errors %}<p class="gate-error">{{ error }}</p>{% endfor %}
        {% endif %}
        <form method="post" action="{% url 'profiles:register' %}">
            {% csrf_token %}
            {{ form.as_p }}
            <button type="submit"><i class="fas fa-user-plus"></i> Register</button>
        </form>
        <p class="gate-card-alt">Already have an account? <a href="{% url 'profiles:login' %}" class="btn btn-sm btn-accent">Log in</a></p>
    </div>
</div>
{% endblock %}
