<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$errorMessage = $this->session->flashdata('error');
?>
<div class="ui container" style="padding-top:5%">
	<?php if (validation_errors() || $errorMessage) { ?>
		<div class="ui negative message"><i class="close icon"></i><?php echo $errorMessage ? $errorMessage : validation_errors(); ?></div>
	<?php } ?>
	<div class="ui equal width center aligned padded grid stackable">
		<div class="row">
			<div class="five wide column">
				<div class="ui segments">
					<?php echo form_open('forgotpassword', 'class="ui form" id="reset-form"'); ?>
					<div class="ui segment">
						<h3 class="ui header">Password Reset</h3>
						<div class="ui divider"></div>
						<div class="content">
							<div class="header">Forgot your password?</div>
							<div class="description">Enter your email address below and we will send you instructions on how to change your password.</div>
						</div>
						<div class="ui divider"></div>

						<div class="field">
							<div class="ui fluid icon input">
								<input name="email" type="email" placeholder="Your Email..." autocomplete="off"  />
								<i class="icon mail outline"></i>
							</div>
						</div>

						<div class="ui divider hidden"></div>
						<button class="ui primary fluid button" type="submit"><i class="send icon"></i>Submit</button>

						<div class="field">
							<a href="<?php echo site_url('login'); ?>"><i class="arrow left icon"></i>Login</a>
						</div>
					</div>
					<?php echo form_close(); ?>
				</div>
			</div>
		</div>
	</div>
</div>
