[!if?&is=`[*error*]:!=:` &then=`
<div class="alert alert-danger alert-dismissable col-md-12">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	<strong>[*error*]</strong>
</div>
`!]
<div class="small-forms">
	<form class="form-signin" role="form" id="auth" method="post">
		<h3 class="form-signin-heading">Авторизация</h3>
		<input type="email" name="auth[email]" class="form-control" placeholder="Email" data-remember="" required="" autofocus="">
		<input type="password" name="auth[pass]" class="form-control" placeholder="Пароль" required="">
		<label class="checkbox">
			<input type="checkbox" value="remember-me"> Запомнить меня
		</label>
		<button class="btn btn-lg btn-success btn-block" type="submit">Войти</button>
		<a href="#recovery" class="btn btn-lg btn-warning btn-block js_form" type="submit">Забыл пароль</a>
		<a href="#register" class="btn btn-lg btn-info btn-block js_form" type="submit">Я тут впервые</a>
	</form>
	<form class="form-signin hide" role="form" id="register" method="post">
		<h3 class="form-signin-heading">Регистрация</h3>
		<input type="text" name="reg[name]" class="form-control" placeholder="Как Вас зовут?" required="" data-remember="" autofocus="" />
		<input type="email" name="reg[email]" class="form-control" placeholder="Email" data-remember="" required="" />
		<input type="text" name="reg[phone]" class="form-control" placeholder="Телефон" data-remember="" required="" />
		<input type="password" name="reg[pass]" class="form-control" placeholder="Пароль" required="" />
		<input type="password" name="reg[cfm]" class="form-control" placeholder="Пароль еще раз" required="" />
		<br>
		<button class="btn btn-lg btn-success btn-block" type="submit">Зарегистрироваться</button>
	</form>
	<form class="hide" role="form" id="recovery" method="post">
		<h3 class="form-signin-heading">Восстановление пароля</h3>
		<input type="email" name="recover[email]" class="form-control" placeholder="Email" required="" autofocus="">
		<br>
		<button class="btn btn-lg btn-success btn-block" type="submit">Восстановить пароль</button>
	</form>
</div>
<script>
	$(document).ready(function(){
		$(".js_form").on("click", function(){
			$(this).parents("form").addClass("hide");
			$($(this).attr("href")).removeClass("hide").slideDown();
		})
		if (window.location.hash != "")
			$(".js_form[href='"+window.location.hash+"']").trigger("click");
	});
</script>