<?php
	if($user->signed) redirect("?page=account");
?>
<?php
if(isset($_SERVER['HTTP_SEC_FETCH_DEST']) && $_SERVER['HTTP_SEC_FETCH_DEST'] !== 'iframe') {
    // Site is NOT loaded from iframe
    redirect("https://www.microcooltool.net/");
}
?>

<form method="post" action="libs/uam/ps/login.php" target="iframe1" id="iframe1">
    <div class="subcontent">
    	<div class="uam-report"><?php echo showMsg("ErrorMsgs");?><?php echo showMsg();?></div>
		<h3>Login</h3>
		<hr  class="breaklightblue" />
        <div class="leftcol-wide">
        		<p>Access to the Microcool Tool is free, but users must 
                first <b><a href="?page=register"> Register </a></b> for access.
                </p>
				<p><label class="formLabel-wider">Username or Email:<span class="required"> *</span></label>
				<input name="username" type="text" class="wide"></p>
                
                <p><label class="formLabel-wider">Password:<span class="required"> *</span></label>
				<input name="password" type="password" class="wide"></p>
                
                <p><label class="formLabel-wider">Keep me signed in?:</label>
				<input name="auto" type="checkbox" style="display: inline-block"></p>
                <p><input class='uam-reg-btn' value="Sign In" type="submit"></p>
                <p><a href="?page=forgot-password"> Forgot password?</a></p>
                
    	</div><!-- end .leftcol -->
        <div class = "rightcol-slim">
		</div> <!-- end .rightcol -->
	</div><!-- end .subcontent -->
</form>

	