{% extends "shopyo_base/main_base.html" %}

{% set active_page = "register" %}

{% block pagehead %}
	<title>Register - Shopyo</title>
{% endblock %}

{% block content %}
<div class="min-h-[80vh] flex flex-col justify-center py-12 sm:px-6 lg:px-8">
    <div class="sm:mx-auto sm:w-full sm:max-w-md text-center">
        <img src="/static/shopyo.svg" class="mx-auto h-20 w-auto transition-transform hover:scale-110 duration-300" alt="Shopyo">
        <h2 class="mt-6 text-center text-3xl font-black text-slate-900 dark:text-white tracking-tight uppercase">
            Join Shopyo
        </h2>
        <p class="mt-2 text-center text-xs font-bold text-slate-500 uppercase tracking-widest">
            Create your administrative account
        </p>
    </div>

    <div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
        <div class="bg-white dark:bg-slate-900 py-10 px-6 shadow-2xl rounded-[2.5rem] border border-slate-200 dark:border-slate-800 sm:px-10">
            <form action="{{url_for('shopyo_auth.register')}}" method="POST" class="space-y-6">
                {% include 'shopyo_auth/blocks/register_form.html' %}
            </form>

            <div class="mt-8 pt-8 border-t border-slate-100 dark:border-slate-800 text-center">
                <p class="text-xs font-bold text-slate-500 uppercase tracking-widest">
                    Already registered?
                    <a href="{{ url_for('shopyo_auth.login') }}" class="ml-1 text-primary hover:text-primary-dark transition-colors">Sign in here</a>
                </p>
            </div>
        </div>
    </div>
</div>
{% endblock %}
