<?php ?>
<div style="max-width: 400px; margin: 4rem auto;">
    <div class="card">
        <h2 style="text-align: center; margin-bottom: 2rem;"><?= \App\Helpers\Lang::t('register_title') ?></h2>
        
        <form action="/register" method="POST">
            <?= \App\Core\CSRF::field() ?>
            
            <div class="form-group">
                <label><?= \App\Helpers\Lang::t('username') ?></label>
                <input type="text" name="username" class="form-control" required>
            </div>

            <div class="form-group">
                <label><?= \App\Helpers\Lang::t('email') ?></label>
                <input type="email" name="email" class="form-control" required>
            </div>
            
            <div class="form-group">
                <label><?= \App\Helpers\Lang::t('password') ?></label>
                <input type="password" name="password" class="form-control" required>
            </div>
            
            <button type="submit" class="btn btn-primary" style="width: 100%;"><?= \App\Helpers\Lang::t('register') ?></button>
        </form>
        
        <p style="text-align: center; margin-top: 1.5rem; font-size: 0.9rem;">
            <?= \App\Helpers\Lang::t('have_account') ?> <a href="/login"><?= \App\Helpers\Lang::t('login_here') ?></a>
        </p>
    </div>
</div>
