{{HEAD}}
<div class="container">
	{{HEADER}}
	[!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">[#3#]</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="Password" required="">
			<label class="checkbox">
				<input type="checkbox" value="remember-me"> Remember me
			</label>
			<button class="btn btn-lg btn-success btn-block" type="submit">[#3#]</button>
			<a href="#recovery" class="btn btn-lg btn-warning btn-block js_form" type="submit">Forgot password</a>
			<a href="#register" class="btn btn-lg btn-info btn-block js_form" type="submit">Register</a>
		</form>
		<form class="form-signin hide" role="form" id="register" method="post">
			<h3 class="form-signin-heading">Register</h3>
			<p>All fields are required</p>
			<input type="text" name="reg[name]" class="form-control" placeholder="Your name?" 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="Phone" data-remember="" required="" />
			<input type="password" name="reg[pass]" class="form-control" placeholder="Password" required="" />
			<input type="password" name="reg[cfm]" class="form-control" placeholder="Password one more time" required="" />
			<br>
			<button class="btn btn-lg btn-success btn-block" type="submit">Register</button>
		</form>
		<form class="hide" role="form" id="recovery" method="post">
			<h3 class="form-signin-heading">Password recovery</h3>
			<input type="email" name="recovery" autocomplete="off" class="form-control" placeholder="Email" required="" autofocus="">
			<br>
			<button class="btn btn-lg btn-success btn-block" type="submit">Recover password</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>
</div> <!-- /container -->
{{FOOTER}}