html
    head
        meta(charset="utf-8")
        meta(name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no")
        meta(name="description" content="")
        link(href="css/particles.css" rel="stylesheet")
        link(href="css/auth.css" rel="stylesheet")
        title Регистрация
    
    body
        div(id="tsparticles")
            main(class="box")
                h2 Регистрация
                
                form(action="/api/register" method="POST")
                    div(class="inputBox")
                        label(for="username") Ник
                        input(type="text" name="username" id="username" placeholder="ваш ник на сервере" required)
                    div(class="inputBox")
                        label(for="password") Пароль
                        input(type="password" name="password" id="password" placeholder="ваш пароль" required)
                    div(class="inputBox")
                        label(for="passwordConfirm") Повтор пароля
                        input(type="password" name="passwordConfirm" id="passwordConfirm" placeholder="повторите пароль" required)
                    if require_token
                        div(class="inputBox")
                            label(for="inviteToken") Токен приглашения
                            input(type="text" name="inviteToken" id="inviteToken" placeholder="код приглашения" required)
                    button(type="submit" name="" style="float: left;") Зарегистрироваться
                    a(class="button" href="login" style="float: left;") Войти
        script(src="https://cdn.jsdelivr.net/npm/tsparticles@1.34.1/tsparticles.min.js" integrity="sha256-D6LXCdCl4meErhc25yXnxIFUtwR96gPo+GtLYv89VZo=" crossorigin="anonymous")
        script(type="text/javascript" src="js/particles.js")   
