<{if $lang_reset !== 1}>
<script>
	$(function(){
		$('#passforget').on('click',function(e){
			e.preventDefault();
			$('#lostpass').slideToggle();
		})
	})
</script>
<div style="position: relative;">
	<div class="form-wrapper">
		<h1><{$lang_login}></h1>
		<form action="user.php" method="post">
			<div class="form-item">
				<input type="text" class="uname" name="uname" placeholder="User ID or Email" value="<{$usercookie}>" />
			</div>
			<div class="form-item">
				<input type="password" name="pass" placeholder="<{$lang_password}>" />
			</div>
	    <{if $rememberme }>
			<div class="form-item">
				<input type="checkbox" name="rememberme" value="On" /><{$lang_rememberme}>
			</div>
	    <{/if}>
    	<div>
				<input type="hidden" name="xoops_redirect" value="<{$icms_requesturi}>"/>
				<input type="hidden" name="op" value="login" />
			</div>
			<div class="button-panel">
				<input type="submit" class="button" title="<{$lang_login}>" value="<{$lang_login}>" />
			</div>
		</form>
  	<div class="form-footer">
    	<p><a id="passforget" href="#"><{$lang_lostpassword}></a></p>
			<{if $allow_registration }>
				<p><{$lang_notregister}></p>
			<{/if}>
  	</div>
	</div>
	<div id="lostpass" class="form-wrapper">
		<p class="padded"><{$lang_noproblem}></p>
		<form action="lostpass.php" method="_POST">
			<div class="form-item">
				<input type="text" name="email" size="26" maxlength="60" placeholder="<{$lang_youremail}>" />
				<input type="hidden" name="op" value="mailpasswd" />
				<input type="hidden" name="t" value="<{$mailpasswd_token}>" />
			</div>
			<div class="button-panel">
				<input type="submit" class="button" title="<{$lang_sendpassword}>" value="<{$lang_sendpassword}>" />
				<br /><br />
			</div>
		</form>
	</div>
</div>
<{else}>

<div style="position: relative;">
	<div class="form-wrapper">
		<h1><{$smarty.const._US_RESETPASSTITLE}></h1>
		<p><{$smarty.const._US_RESETPASSINFO}></p>
		<form action="resetpass.php" method="post">
			<div class="form-item">
				<input type="password" name="pass"  name="c_password" placeholder="<{$lang_currentpass}>" />
			</div>
			<div class="form-item">
				<input type="password" name="pass"  name="password" placeholder="<{$lang_newpass}>" />
			</div>
			<div class="form-item">
				<input type="password" name="pass"  name="password2" placeholder="<{$lang_newpass2}>" />
				<input type="hidden" name="op" value="resetpass" /><input type="hidden" name="t" value="<{$resetpassword_token}>" />
			</div>
			<div class="button-panel">
				<input type="submit" class="button" title="<{$smarty.const._US_RESETPASSWORD}>" value="<{$smarty.const._US_RESETPASSWORD}>" />
			</div>
		</form>
	</div>
</div>

<{/if}>
