<?php

define('PERMISSION_TYPE', 'LOGIN_SECURITY');

require __dir__ . '/init.php';

require _SDIR . '/for-pin.php';

template::$BLANK_PAGE = TRUE;

template::get_header();

?>

	<?php bridge::open(); ?>
	
		<div class='pt-5'>
			<div class='card shadow'>
				<div class='card-body'>
					
					<div class="logo text-center mb-3">
						<a href="<?php echo help::url(); ?>">
							<img src="<?php echo template::$logo; ?>" height="50" alt="" />
						</a>
					</div>	
					
					<form id="adminpro-form" class="adminpro-form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">

						<?php template::alert( $msg, 'danger' ); ?>

						<div class="login-bg">
							<div class="row mb-3">
								<div class="col-lg-4">
									<label class="login-input-head">
										<strong>Pin</strong>
									</label>
								</div>
								<div class="col-lg-8">
									<div class="input-group">
										<input type="password" name="pin" class='form-control' />
										<div class='input-group-append'>
											<span class='input-group-text'>
												<i class="fa fa-lock login-user"></i>
											</span>
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-lg-4"></div>
								<div class="col-lg-8">
									<div class="login-button-pro">
										<button type="submit" class="btn btn-primary">Log in</button>
									</div>
								</div>
							</div>
						</div>
				
					</form>
				   
			  	</div>
			</div>
		</div>
		
	<?php bridge::close(); ?>
	
<?php template::get_footer(); ?>