<div class="card loginbox text-center mb-3">
	<div class="card-header"><h1 class="m-0 p-0">Restricted Access</h1></div>

	<div class="card-body">
		<form name="login_form" id="login_form" method="post" action="/login/process" class="nvForm">
			<input type="hidden" name="redirect" id="redirect" value="<?php ($this->input->get_post("redirect") ? html_escape($this->input->get_post("redirect")) : "/admin"); ?>" />
			<?php csrf(); ?>

			<div class="<?php echo(FORM_ROW); ?>">
				<input type="text" name="username" id="username" placeholder="Username" title="Username" class="form-control" aria-label="Your username is required." value="<?php echo(html_escape($this->input->post("username"))); ?>" required autofocus autocomplete="off" />
			</div>

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

			<div class="form-row">
				<button type="submit" class="btn btn-primary d-block w-100"><em class="fas fa-fw fa-sign-in-alt" aria-hidden="true"></em> Authenticate</button>
			</div>
		</form>
	</div>
</div>

<div class="card loginbox text-center">
	<div class="card-header"><h2 class="m-0 p-0">Forgot Your Password?</h2></div>

	<div class="card-body">
		<form name="pwreset" id="pwreset" method="post" action="/login/pwreset" class="nvForm">
			<?php csrf(); ?>

			<div class="<?php echo(FORM_ROW); ?>">
				<input type="text" name="email" id="email" placeholder="Username or Email Address" title="Username or Email Address" class="form-control" aria-label="Your username or email address can be used to reset your password." required autocomplete="off" />
			</div>
			<div class="form-row">
				<button type="submit" class="btn btn-secondary d-block w-100"><em class="fas fa-fw fa-magic" aria-hidden="true"></em> Reset Password</button>
			</div>
		</form>
	</div>
</div>
