<?php require_once(ROOT . "/views/" . LANG . "/layouts/_header_r.php"); ?>

	<div class="container">
		<div class="content">
			<article class="col-md-12" style="
    width: 100%;
">
				<div class="row">
					<div class="col-md-6 col-md-offset-3">
						<form action="" method="POST">
							<input type="hidden" name="_tocken" value="<?=Session::$tocken; ?>">
							<div class="form-heading text-center">
								<a href="/"><img src="/assets/images/logo.png" style="max-width: 100%;"></a>
								<div class="title">Регистрация аккаунта</div>
							</div>
							<div class="row">
								<div class="col-sm-6" style="
    width: 100%;
">
									<input name="reg_login" type="text" maxlength="15" minlength="3" placeholder="Введите Логин" required/> 
								</div>
								<div class="col-sm-6" style="
    width: 100%;
">
									<input name="reg_email" type="email" placeholder="Введите E-mail" required/> 
								</div>
							</div>
							<div class="row">
								<div class="col-sm-6" style="
    width: 100%;
">
									<input name="reg_pass" type="password" maxlength="20" minlength="6" placeholder="Введите Пароль" required/> 
								</div>
								<div class="col-sm-6" style="
    width: 100%;
">
									<input name="reg_re_pass" type="password" maxlength="20" minlength="6" placeholder="Повторите Пароль" required /> 
								</div>
							</div>
							<div class="row">
								<div class="col-md-12 text-center" style="
    width: 100%;
">
									<button class="g-recaptcha adam-button adam-red">Создать аккаунт</button>
									<p class="title-description">Быть может у Вас уже <a href="/login">есть</a> аккаунт?</p>
								</div>
							</div>
						</form>
					</div>
				</div>
			</article>
			<div class="clearfix"></div>
		</div>
	</div>

<script src="/assets/plugins/bootstrap-sweetalert/sweet-alert.min.js"></script>

<?php if(isset($errors) && $errors !== false) :  ?>

  <script>
    setTimeout(function(){swal('<?=$errors[0]; ?>', '<?=$errors[1]; ?>', '<?=$errors[2]; ?>')}, 100);
  </script>

<?php endif; ?>

</body>
</html>
