<!DOCTYPE html>

<html lang="en">



<head>

    <base href="<?= (!is_null($setting) && !empty($setting->getUrl())) ? $setting->getUrl() : URL_BASE; ?>">

    <meta charset="utf-8">

	<meta http-equiv="content-language" content="pt-br">

	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<meta http-equiv="content-type" content="text/html; charset=UTF-8">

	<meta http-equiv="cache-control" content="public"/>

	<meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="robots" content="noindex, nofollow">

    

    <title>Login | <?= (!is_null($setting) && !empty($setting->getTitle())) ? $setting->getTitle() : 'Template Suits' ?></title>

    <?php require 'links.php'; ?>

    <link href="public/admin/js/plugins/jquery.nestable/nestable.css" type="text/css" rel="stylesheet" media="screen,projection">



</head>



<body>



    <main class="login">

        <div class="fundo"></div>

        <div class="box">

            <figure>

				<img src="<?= (!is_null($brand) && !empty($brand->getLogo())) ? $brand->getLogo() : 'public/site/images/logo.png'; ?>" class="brand-logo">

				<figcaption>Logo da marca - <?= (!is_null($setting) && !empty($setting->getTitle())) ? $setting->getTitle() : 'Template Suits' ?></figcaption>

			</figure>

            <fieldset>

                <?php if(isset($_SESSION['mensagem'])): ?>

                    <div id="card-alert" class="card <?= ($_SESSION['tipo'] == 'danger') ? 'red' : 'green' ?>">

                        <div class="card-content white-text">

                        <?php if($_SESSION['tipo'] == 'danger'): ?>

                            <p><i class="mdi-alert-error"></i> Erro: <?= $_SESSION['mensagem']; ?></p>

                        <?php else: ?>

                            <p><i class="mdi-navigation-check"></i> Sucesso: <?= $_SESSION['mensagem']; ?></p>

                        <?php endif; ?>

                        </div>

                        <button type="button" class="close white-text" data-dismiss="alert" aria-label="Close">

                            <span aria-hidden="true">×</span>

                        </button>

                    </div>

                <?php

                    unset($_SESSION['tipo']);

                    unset($_SESSION['mensagem']);

                endif;

                ?>

                <h1>ESQUECI MINHA SENHA!</h1>

                <p>Para recuperar sua senha, coloque seu email:</p>

                <form method="POST" action="admin/forgot/persist">


                    <input type="text" name="email" placeholder="Insira seu Email" required>

            

                    <button type="submit" class="btn waves-effect">Enviar</button>

                </form>

            </fieldset>

        </div>

    </main>



    <?php require 'scripts.php'; ?>

    <!--nestable -->

    <link href="public/admin/js/plugins/jquery.nestable/nestable.css" type="text/css" rel="stylesheet" media="screen,projection">

    

</body>



</html>