<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="page-container">
	<div id="signinPageContainer">
		<h1>Inicia sesión</h1>
		<c:if test="${not empty param.error}">  
			<font color='red'>  
			  Login error. <br />  
			  Reason : ${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}  
			</font>  
		</c:if>
		<form id="signinForm" method="post" action="<c:url value="/j_spring_security_check" />" id="formLoginUser">
			<div class="field">
				<label for="j_username" class="required">Nombre de usuario</label>
				<input type="text" class="focusField" size="10" id="username" name="j_username">
			</div>
			<div class="field">
				<label for="j_password" class="required">Contraseña</label>
				<input type="text" size="50" id="pwd" name="j_password">
			</div>
			<div>
<!-- 				<input type="hidden" value="/account/" name="ref"> -->
<!-- 				<input type="hidden" value="1" name="signinForm"> -->
				<button class="pw-btn" value="login" type="submit">Iniciar</button> o <a href="/user/register">crear cuenta de usuario</a>
			</div>
		</form>
	</div>
</div>