<html>
    <head>
        <meta charset="UTF-8">
        <title>CSE Invent : Identification</title>

        <?php pwa::printManifeste(); ?>
        
        <meta name="mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="application-name" content="CSE Invent : CMS">
        <meta name="apple-mobile-web-app-title" content="CSE Invent : CMS">
        <meta name="msapplication-starturl" content="/">
        <meta name="msapplication-TileColor" content="#da532c">
        <meta name="theme-color" content="#ffffff">

        <link rel="icon" type="image/x-icon" href="favicon.ico">

        <script src="libs/js/jquery.min.js"></script>
        <script src="libs/bootstrap/js/bootstrap.min.js"></script>
        
        <link rel="stylesheet" href="libs/bootstrap/assets/dist/css/bootstrap.min.css">
        <link rel="stylesheet" href="css/login.css">
    </head>
    <body>

        <div class="wrapper fadeInDown">
            
            <div id="formContent">
                
                <div class="fadeIn first">
                    <img src="img/logo.png" id="icon" alt="CSE Invent" />
                </div>

                <form method="post" action="/submit.php">
                    <input type="hidden" name="from" value="login">
                    <input type="text" class="fadeIn second" name="email" placeholder="email">
                    <input type="password" class="fadeIn third" name="password" placeholder="mot de passe">
                    <input type="submit" class="fadeIn fourth" value="Se connecter">
                </form>
                
                <div id="formFooter"<?php if(!alert::ifError()) { echo ' style="display:none"'; } ?>>
                    <div class="alert alert-danger" role="alert" ><?php echo alert::printAlert(alert::getError()) ?></div>
                </div>

            </div>
        </div>
        <?php pwa::printServiceWorker(); ?>
    </body>
</html>

<?php 
    alert::destroyAlert();
?>