<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$("input:text:visible:first").focus();		
	});
</script>
	
<div class="reg-block">
		
		
		<div class="reg-block-header">
		    <h2 class="sign_in_heading"><%= I18n.t(:sign_in)%> <span style="color: #333">BuildWise</span></h2>
		</div>
			
			<% if User.count == 0%>
			<div class="alert alert-info">
				Default login: <b>admin</b> / <b><%= 'buildwise' %></b>
			</div>
			<% end %>
						
				<form id="login-form" class="smart-form client-form" action="/sessions" accept-charset="UTF-8" method="post">
					
					<input name="utf8" type="hidden" value="✓">		
						
						<div class="input-group margin-bottom-20">
						  <div class="input-group-prepend">
						    <span class="input-group-text" id="basic-addon1">
							  <i class="fa fa-user" style="padding:4px;"></i>
							</span>
						  </div>
							<input class="form-control" autocomplete="off" id="sign_in_email" maxlength="90" name="login" tabindex="1" type="text" placeholder="Email or username" value="">
						</div>
						
						<div class="input-group margin-bottom-20">
						  <div class="input-group-prepend">
						    <span class="input-group-text" id="basic-addon2">
								<i class="fa fa-lock" style="padding:4px;"></i>
							</span>
						  </div>
							<input class="form-control" autocomplete="off" id="sign_in_password" maxlength="90" name="password" tabindex="2" type="password" placeholder="Password">					      
						</div>					
					
						
					<div class="row" style="margin-bottom: 0.5rem;">
					    <div class="col-md-6">
						   <input type="submit" value="<%= I18n.t(:sign_in)%>" id="sign_in_btn" class="btn-u btn-block">				</div>
						<div class="col-md-6" style="margin-top: 1.25rem; ">
							<label class="checkbox" style="margin-left: 0px;">
						  	<input type="checkbox" name="remember_me" value="true"/>
					      <span class="" title="stay_signed_in" style="font-size: 1.06rem;"><%= I18n.t(:stay_signed_in) %></span>
					     </label>
						</div>
						<!--
						<div class="col-md-7" style="margin-top: 10px; text-align: right;">
							<a id="forgot_password_link" href="/reset_password?locale=en">Forgot password?</a>            		
						</div>
						-->
					</div>
							
</form>
</div>
			