<?php
  snippet('header');
  snippet('notification');
  snippet('rightlogoheader');
?>

<h1><?= $page->title()->html() ?></h1>
<p>&nbsp;</p>

<form method="post" action="<?= $page->url() ?>">

  <div class="row mb-3">
     <label for="inputEmail3" class="col-sm-2 col-form-label"><?= $page->email()->html() ?></label>
     <div class="col-sm-10">
       <input class="form-control" type="email" id="email" name="email" value="<?= $data['email'] ?? '' ?>" autocomplete="email" autofocus required>
       <?= isset($alert['email']) ? html($alert['email']) : '' ?>
     </div>
   </div>

   <div class="row mb-3">
     <label for="inputPassword3" class="col-sm-2 col-form-label"><?= $page->password()->html() ?></label>
     <div class="col-sm-10">
       <input class="form-control" type="password" id="password" name="password" value="<?= $data['password'] ?? '' ?>" minlength="<?= $page->minLength() ?>" autocomplete="new-password" required>
       <?= isset($alert['password']) ? html($alert['password']) : '' ?>
     </div>
   </div>

   <input type="submit" name="register" class="btn btn-primary" value="<?= $page->button()->html() ?>"/>

 </form>

<?php
  snippet('rightlogofooter');
  snippet('footer');
?>
