<script type="text/javascript">

var emailFilter=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,4}))$/;

function validate_resetpassword(){
		
	if($("#user_newpassword").val()==''){
		$("#msg_user_password").html('Please enter Password.');
		$("#user_newpassword").addClass('jquery_err');
		$("#user_newpassword").focus();
		return false;
		
	}else if($("#user_newpassword").val()!='' && $("#user_newpassword").val()!=$("#user_newrepassword").val()){
		$("#msg_user_password").html('Password and again password do not matched.');
		$("#user_newpassword").addClass('jquery_err');
		$("#user_newpassword").focus();
		return false;
	}else{
		$("#msg_user_password").html('');
		$("#user_newpassword").removeClass('jquery_err');
	}
}
</script>

<div class="auth-layout-wrap" style="background-image: url(./assets/images/photo-wide-4.jpg)">
	<div class="auth-content">
	    <div class="card o-hidden">
	        <div class="row">
	            <div class="col-md-6">
	                <div class="p-4">
	                    <div class="auth-logo text-center mb-4">
	                        <img src="assets/images/logo.svg" alt="">
	                    </div>
	                    <h1 class="mb-3 text-18">Reset your password!</h1>

						<?php if(isset($successMsg) && $successMsg!=''){ ?>
						<div class="alert alert-success">
							<?php echo base64_decode($successMsg); ?>
						</div>
						<?php } ?>
															
						<?php if(isset($failedMsg) && $failedMsg!=''){ ?>
						<div class="alert alert-danger">
							<?php echo base64_decode($failedMsg); ?>
						</div>
						<?php } ?>
						
						<div class="alert alert-danger" id="jmsg" style="display:none;">
							<span id="validate_msg">&nbsp;</span>
						</div>

	                    <form action="" method="post" onsubmit="return validate_resetpassword();">
	                    	<input type="hidden" id="user_email_address" name="user_email_address" value="<?php echo $_REQUEST['user'] ?>" />
	                        <div class="form-group">
	                            <label for="user_newpassword">New Password</label>
	                            <input id="user_newpassword" name="user_newpassword" class="form-control form-control-rounded" type="password">
	                        </div>
	                        <div class="form-group">
	                            <label for="user_newrepassword">Confirm Password</label>
	                            <input id="user_newrepassword" name="user_newrepassword" class="form-control form-control-rounded" type="password">
	                        </div>
	                        <button class="btn btn-rounded btn-primary btn-block mt-2" id="submit" name="submit" type="submit">Reset Now</button>

	                    </form>

	                    <div class="mt-3 text-center">
	                      <a href="admin-login.php" class="text-muted"><u>Sign In?</u></a>
	                    </div>
	                </div>
	            </div>
	            <div class="col-md-6 text-center " style="background-size: cover;background-image: url(./assets/images/photo-long-3.jpg)">
	                <div class="pr-3 auth-right">
	                    <a class="btn btn-rounded btn-outline-primary btn-outline-email btn-block btn-icon-text" href="signup.html">
	                        <i class="i-Mail-with-At-Sign"></i> Sign up with Email
	                    </a>
	                    <a class="btn btn-rounded btn-outline-primary btn-outline-google btn-block btn-icon-text">
	                        <i class="i-Google-Plus"></i> Sign up with Google
	                    </a>
	                    <a class="btn btn-rounded btn-outline-primary btn-block btn-icon-text btn-outline-facebook">
	                        <i class="i-Facebook-2"></i> Sign up with Facebook
	                    </a>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
</div>