<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:variable name="Space"><xsl:text>&amp;nbsp;</xsl:text></xsl:variable>
<xsl:output method="html"/>

<xsl:template match="/">
	<html>
		<head>
			<link rel="STYLESHEET" href="css/main.css" type="text/css"/>
			<script type="text/javascript">

			</script>
		</head>
		<body>
			<xsl:apply-templates select="login_page"/>
		</body>
	</html>
        
        
</xsl:template>


<!-- ======================================================================= -->
	<xsl:template match="login_page">
		<div class="page_header">Login</div>
		<form name="login_form" method="POST" action="{@login_form_url}">
			<table class="login">
				<tr>
					<td class="input_label">Username</td>
					<td colspan="2"><input type="text" name="email" id="email" value="{@email}" required="Y" tabindex="1" autofocus = "true"/></td>
				</tr>
				<tr>
					<td class="input_label">Password</td>
					<td colspan="2"><input type="password" name="password" required="Y" tabindex="2"/></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<button type="submit" name="action" value="save">Log In</button>
						<a href="pwd_reset.php">Reset Password</a>
					</td>
					<td>
						Not registered? <a href="register.php"> Register here</a>
					</td>
				</tr>
				<tr>
					<td></td>
					<td style="text-align: left; padding-right: 15px;">
						<div class="{@msg_type}"><xsl:value-of select="@msg_text"/></div>
					</td>
				</tr>
			</table>
		</form>
		<p/>
	</xsl:template>


</xsl:stylesheet>