<div class="p-30">
  <h2><?= e(app_zh('注册')) ?></h2>
  <form method="post" action="<?= e_url(base_url('register')) ?>">
    <?= csrf_field() ?>
    <div class="form-group">
      <label><?= e(app_zh('账号')) ?></label>
      <input class="form-control" name="username" required>
    </div>
    <div class="form-group">
      <label><?= e(app_zh('密码')) ?></label>
      <input type="password" class="form-control" name="password" required>
    </div>
    <div class="form-group">
      <label><?= e(app_zh('确认密码')) ?></label>
      <input type="password" class="form-control" name="password2" required>
    </div>
    <div class="form-group">
      <label><?= e(app_zh('推荐码')) ?></label>
      <input class="form-control" name="referral" required>
    </div>
    <button class="btn btn-primary btn-block" type="submit"><?= e(app_zh('注册')) ?></button>
  </form>
  <p class="m-t-15"><?= e(app_zh('已有账号？')) ?> <a href="<?= e_url(base_url('login')) ?>"><?= e(app_zh('去登录')) ?></a></p>
</div>
