<?php

include('views/_header.tpl.php');

if (isset($_GET['reg_ok'])) {
	$msg = 'Registration Successful!';
}

if (isset($_GET['msg'])) {
    $msg = htmlentities(strip_tags($_GET['msg']));
}

?>

<style type="text/css">
	div.spacer {
		padding-top: 0;
	}
	body, html {
		/*		position: fixed;
		top: 0;
		bottom: -72px;
		background-attachment: fixed;*/
		/*background: url('/static/bgs/heart_hands.jpg') center center no-repeat;*/
		background: url('/static/bgmount.jpg') no-repeat center center fixed;
		/*background-color: #000;*/
		background-repeat: no-repeat;
		background-size: cover;
		margin: 0;
		padding: 0;
		/*overflow-x: hidden;*/
		overflow-y: auto;
		font-family: Montserrat,'Open Sans',Helvetica,'Helvetica Neue', sans-serif;
		font-weight: 300;
		color: #fff;
		height: auto;
		min-height: 100vh;
		/* background-color: #000; */
	}
	body {
		height: 100%;
		overflow: auto;
	}
	
	input[type="text"], input[type="password"] {
        border:0px solid rgba(255,255,255,.3) !important;
		padding:15px 10px;
		font-size:17px;
    }
    .btn-o, .btn-o a, .btn-o a:link, .btn-o a:active, .btn-o a:visited, .btn-oo a { 
		background:#000;
		color:#fff;
		/*background-color: #8b248d;
	    background-image: linear-gradient(45deg, #8b248d, #099bf2); */
	    text-shadow:-1px -1px -1px rgba(0,0,0,.5); 
	    font-family: 'Open Sans', Montserrat,Arial,sans-serif; 
		font-weight:300;
		padding:15px;
		border:1px solid #555;
		border-radius:12px; -moz-border-radius:12px; -webkit-border-radius:12px;
		/*border-radius:50px; -moz-border-radius:50px; -webkit-border-radius:50px;*/ 
	}
    
    .btn-o:active, .btn-o:hover, .btn-oo a:hover, .btn-oo a:active { 
		background-color: #099bf2;
    	background-image: linear-gradient(45deg, #099bf2, #8b248d); text-shadow:-1px -1px -1px rgba(0,0,0,.5); 
	}  
	#errordiv a, #errordiv a:active, #errordiv a:visited, #errordiv a:link { 
	border-radius:50px; -moz-border-radius:50px; -webkit-border-radius:50px; 
	padding: 3px 20px; background:#fff; font-weight:800; }
	#errordiv a:hover { background:#00bb00; color:#fff; }
	h1 { font-size:32px; color:#fff; text-align:center; }
	.titletext { font-size:32px; }
	input {
		font-size: 17px;
		background: #fff;
		padding: 15px;
		border: 0;
		border-radius: 6px;
		-moz-border-radius: 6px;
		-webkit-border-radius: 6px;
	}
</style>

<!-- <?php if (!empty($website_options['mobile_background'])) : ?>/<?= $website_options['mobile_background'] ?><?php else : ?>/static/client/ipbg.jpg<?php endif; ?> -->
<img src="/static/client/ipbg.jpg" style="position:absolute; background:cover; object-fit:cover; top:0;
left:0; bottom:0; right:0; min-height:100%; height:100vh; width: auto; min-width:100%; padding-top:0px !important; padding-bottom:0px !important; margin-bottom:0px !important; z-index:-999;" alt="BG" />

 <div class="home-feature-category" style="background:none; border:none; min-height:400px;">
    <div class="container_12 clearfix">
		<div class="titletextx" style="line-height:50px; text-align:center; margin-top:50px; 
			padding-top:50px; background:none;">
			
			<a href="/" style="color:#fff;">
				<img src="/<?= $website_options['website_logo'] ?>" alt="Home"
				style="width:70%; max-width: 270px; min-height: 50px; 
				margin:0 auto;" align="absmiddle" /></a>
			<!--<?php if (!empty($website_options['mobile_logo'])) : ?>
			<img src="/<?= $website_options['mobile_logo'] ?>"
			style="width: auto; max-width: 170px; height: 50px; margin-top:-10px;" alt="" /> 
			Forgot Password
			<?php endif; ?>-->
		</div>
		
		<h1>Forgot Password?</h1>

		<?php
		if (isset($msg)) {
			echo "<div id='errordiv' style='line-height:25px; background:#ff0000; color:#fff; 
			padding:11px 15px; margin:5px 5px 15px 5px; border:1px solid #fff; font-weight:300; 
			font-size:15px;'>$msg &nbsp;<a href='/auth/forgot'>Ok!</a></div><br />";
		}
		?>

		<?php
		if (isset($notifSent)) {
			echo "A Password Reset link has been sent to your email.<br />";
		} elseif (isset($codeCorrect)) {
		?>

		<form method="post" style="color:#fff; text-align:center; max-width:350px; margin:0 auto;">
			<input type="hidden" name="code" value="<?php echo $code ?>" />
			<span style="font-size:17px">Please enter your new password:</span>
			<br /><br />
			<input class="txt" type="password" name="password" style="width:75%;" />
			<br /><br />
			<input type="submit" class="btn-o" value="SUBMIT"
			style="width:80%; padding-left:10px; padding-right:10px; margin-bottom:10px; 
			box-shadow: 0 3px 10px rgb(0 0 0 / 70%);" />
		</form>

		<?php } else { ?>
		
		<form method="post" style="color:#fff; text-align:center; max-width:450px; margin:0 auto; 
		line-height: 27px; font-size:17px;">
			<span style="">Enter your account email to reset your password.</span>
			<br /><br />
			Note: If you have a phone number 
			on file, you&rsquo;ll also receive a reset link via text message too.
			<br /><br />
			
			<input type="text" name="email" placeholder="Email"
			style="width:75%; font-family: 'Open Sans',sans-serif; font-weight:400; " />
			<br /><br />
			<input type="submit" value="Reset Password" class="btn-o"
			style="width:80%; font-family: 'Open Sans',sans-serif; font-weight:400;
			padding-left:10px; padding-right:10px; box-shadow: 0 3px 10px rgb(0 0 0 / 70%);" />
		</form>
		
		<?php } ?>
		
		<br /><br />
		<center style="color:#ccc; font-size:17px;"><a href="/" style='color:#fff; 
		font-size:17px;'>&laquo; Back to Home</a> |
		<a href="/auth/login" style='color:#fff; font-size:17px;'>Login &raquo;</a>
		</center>
		<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />			
		
	</div>
	<!-- CONTAINER 12 ENDS -->
</div>
<!-- HOME FEATURE CATEGORY ENDS -->

<?php

include('views/_footer_m.tpl.php');

?>