<?php

define("PERMISSION_TYPE", NULL);

require __dir__ . '/init.php';

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

template::$BLANK_PAGE = true;

template::get_header();
 
 ?>

    <section class="section" style="margin-top:-60px">
      <div class="container mt-5">
        <div class="row">
          <div class="col-12 col-sm-8 offset-sm-2 col-md-6 offset-md-3 col-lg-6 offset-lg-3 col-xl-4 offset-xl-4">
            
			<div class="login-brand">
              <img src="<?php  echo template::$logo;?>" alt="logo" width="100" class="shadow-light">
            </div>

            <div class="card card-primary">
              <div class="card-header"><h4>Admin Login</h4></div>

				<div class="card-body">
					<form method="POST" action="index.php" class="needs-validation" novalidate="">

						<div class="form-group">
							<label for="email">Email</label>
							<input id="email" type="email" class="form-control" name="email" tabindex="1" required autofocus>
							<div class="invalid-feedback">
								Please fill in your email
							</div>
						</div>

						<div class="form-group">
							<div class="d-block">
								<label for="password" class="control-label">Password</label>
							</div>
							<input id="password" type="password" class="form-control" name="password" tabindex="2" required>
							<div class="invalid-feedback">
								please fill in your password
							</div>
						</div>


						<div class="form-group">
							<button type="submit" name="login" class="btn btn-primary btn-lg btn-block" tabindex="4">
							  Login
							</button>
						</div>
					</form>
                </div>
                 
				<div class="simple-footer">
				  Copyright &copy; <?php  echo $settings->get('name') . ' ' . date('Y'); ?>
				</div>
			
			</div>
          </div>
      </div>
  </div>
    </section>

<?php template::get_footer(); ?>
