<div class="card loginbox text-center">
	<div class="card-header"><h1>Password Reset</h1></div>

	<div class="card-body">
		<form name="pwreset" id="pwreset" method="post" action="/login/pwsave" class="nvForm">
			<input type="hidden" name="user_id" id="user_id" value="<?php echo($user_id); ?>" />
			<?php csrf(); ?>

			<div class="<?php echo(FORM_ROW); ?>">
				<input type="text" name="resetcode" id="resetcode" placeholder="Password Reset Code" title="Password Reset Code" aria-label="Your password reset code was emailed to you." required autofocus class="form-control" />
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<input type="password" name="password" id="password" placeholder="New Password" title="New Password" aria-label="Your new password must be at least 8 characters long." required pattern=".{8,255}" class="form-control" />
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<input type="password" name="password2" id="password2" placeholder="Retype New Password" title="Retype New Password" aria-label="Retype your new password." required class="form-control" />
			</div>

			<div class="form-row">
				<button type="submit" class="btn btn-primary d-block w-100"><em class="fas fa-fw fa-magic" aria-hidden="true"></em> Reset Password</button>
			</div>
		</form>
	</div>
</div>