{% extends 'layout/auth.html.twig' %}

{% block title %}Register{% endblock %}

{% block auth_body %}
    {{ form_errors(registrationForm) }}

    {{ form_start(registrationForm) }}
        {{ form_row(registrationForm.email) }}
        {{ form_row(registrationForm.username) }}
        {{ form_row(registrationForm.plainPassword) }}
        {{ form_row(registrationForm.agreeTerms) }}
        {{ form_row(registrationForm.marketingOptIn) }}
        {{ form_row(registrationForm.captcha) }}

        <div class="d-grid mt-3">
            <button type="submit" class="btn btn-primary">Register</button>
        </div>
    {{ form_end(registrationForm) }}

    <div class="mt-3 text-center">
        <a href="{{ path('app_login') }}">Already have an account? Log in</a>
    </div>
{% endblock %}
