{if $action == ''}
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
      <meta name="description" content="" />
      <meta name="author" content="" />
      <title>JU & MI Administration</title>
      <link href="css/styles.css" rel="stylesheet" />
      <script src="js/all.js" crossorigin="anonymous"></script>
      <script src="../jquery/jquery-3.4.1.min.js"></script>
      <link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
      <script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
      <script src="../js/lottie_bodymovin/lottie.min.js"></script>
      <style type="text/css">
         .lottie-container {
         justify-content: center;
         top:  40px;
         left:  0;
         right:  0;
         bottom:  20px;
         height: 180px;
         pointer-events: none;
         }
      </style>
<script>
$(document).ready(function(){
  $('[data-toggle="popover"]').popover();
});
</script>
   </head>
   <body>
      <div id="navtop"></div>
      {literal}
      <script>
        $(function() {
         $("#mail").focus();
        });

         $(function(){
           $("#footer").load("footer.php");
         });
      </script>
      {/literal}
      <div id="layoutAuthentication">
         <div id="layoutAuthentication_content">
            <main>
            <!--Anwendung-->
            <script src="../js/components/admin_login.js"></script>
               <div class="lottie-container" id="lottie-container"></div>
               <div class="container">
                  <div class="row justify-content-center">
                     <div class="col-lg-5">
                        <div class="card shadow-lg border-0 rounded-lg mt-5">
                           <div class="card-header">
                              <h3 class="text-center font-weight-light my-4">Login</h3>
                           </div>
                           <div class="card-body">
                                 <div class="form-floating mb-3">
                                    <input class="form-control" name="mail" id="mail" type="email" onkeydown="keysave(this)" placeholder="Mailadresse" />
                                    <label for="inputEmail">Mailadresse</label>
                                 </div>
                                 <div class="form-floating mb-3">
                                    <input class="form-control" name="password" id="password" type="password" onkeydown="keysave(this)" placeholder="Passwort" />
                                    <label for="inputPassword">Passwort</label>
                                 </div>
                                 <!--<div class="form-check mb-3">
                                    <input class="form-check-input" id="inputRememberPassword" type="checkbox" value="" />
                                    <label class="form-check-label" for="inputRememberPassword">Remember Password</label>
                                    </div>
                                    -->
                                 <div class="d-flex align-items-center justify-content-between mt-4 mb-0">
                                    <!--<a class="small" href="password.html">Forgot Password?</a>-->
                                    <label><input type="checkbox" name="angemeldet_bleiben" id="angemeldet_bleiben" value="1">
									  <a type="button" class="link-secondary" data-bs-toggle="popover" data-bs-html="true"  data-bs-trigger="hover"
									          title="Angemeldet bleiben"
									          data-bs-content="Durch das Markieren dieses Feldes wird beim n&auml;chsten Besuch die Anmeldemaske nicht erscheinen.<br>
									          <b>Die Anwendung speichert lokal Cookies in Ihrem Browser.</b><br>
									          Sobald Sie in der Anwendung einen Logout machen, werden die Cookies gel&ouml;scht und ein Login ist wieder erforderlich.">
									    Angemeldet bleiben
									  </a>
                                    </label>
                                    &nbsp;
                                    <a class="link-secondary" href="passwortvergessen.php">Passwort vergessen</a>
                                </div>

                           </div>
                           <input type='submit' class="btn btn-primary" onclick="login();" name='senden' value="Login">
                           <div class="card-footer text-center py-3">
                              <!--<div class="small"><a href="register.html">Need an account? Sign up!</a></div>-->
                           </div>
                        </div>
                        <div id="msg"></div>
                     </div>
                  </div>
               </div>
               <!--<div class="lottie-container" id="lottie-container"></div>-->
               <script type="text/javascript">
                  var item = bodymovin.loadAnimation({
                  wrapper: document.getElementById('lottie-container'),
                  animType: 'svg',
                  loop: true,
                  autoplay: true,
                  path: '../media/data.json'
                  });
               </script>
            </main>
			      {literal}
                  <script type="text/javascript">
			         function keysave(ele) {
			         if(event.key === 'Enter') {
			         login();
			         }
			         }
			       </script>
			      {/literal}
         </div>
         <div id="layoutAuthentication_footer">
            <!-- footer -->
            <div id="footer"></div>
         </div>
      </div>
<script>
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
  return new bootstrap.Popover(popoverTriggerEl)
})
</script>
   </body>
</html>
{/if}
