<div class="container">
  <div class="row">
    <div class="col-12 col-sm8- offset-sm-2 col-md-6 offset-md-3 mt-5 pt-3 pb-3 bg-white from-wrapper">
      <div class="container">
        <h3 class="icon-lock">Identification</h3>
        <hr>
        <?php if (session()->get('success')): ?>
          <div class="alert alert-success" role="alert">
            <?= session()->get('success') ?>
          </div>
        <?php endif; ?>
        <form class="" action="" method="post">
          <div class="row">
            <div class="col">
              <!-- <div class="text-danger err_con" id="err_con_login"></div> -->
              <div class="form-floating mb-3">
                <input type="text" class="form-control form-control-sm" name="email" id="email" placeholder="nom@exemple.com" value="<?=set_value('email');?>">
                <label for="email">Votre adresse e-mail</label>
              </div>
              <!-- <div class="text-danger err_con" id="err_con_mdp"></div> -->
              <div class="form-floating mb-3">
                <input type="password" class="form-control form-control-sm" name="mdp" id="mdp" placeholder="Mot de passe" value="<?=set_value('mdp');?>">
                <label for="mdp">Votre mot de passe</label>
              </div>
            </div>
          </div>
          <?php if (isset($validation)): ?>
            <div class="row">
              <div class="col-12">
                <div class="alert alert-danger" role="alert">
                  <?=$validation->listErrors()?>
                </div>
              </div>
            </div>
          <?php endif; ?>
          <div class="row">
            <div class="col">
              <button type="submit" class="btn btn-primary">Connexion</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
