
<?php
if(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == "pt") {
$lang_titulo = "Gerenciamento";
$lang_login = "Login";
$lang_senha = "Senha";
} elseif(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == "en") {
$lang_titulo = "Management";
$lang_login = "Login";
$lang_senha = "Password";
} elseif(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == "es") {
$lang_titulo = "Administración";
$lang_login = "Login";
$lang_senha = "Contraseña";
} else {
$lang_titulo = "Gerenciamento";
$lang_login = "Login";
$lang_senha = "Senha";
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>Login</title>
  <link rel="stylesheet" href="inc/materialdesignicons.min.css">
  <link rel="stylesheet" href="inc/font-awesome.min.css">
  <link rel="stylesheet" href="inc/vendor.bundle.base.css">
  <link rel="stylesheet" href="inc/vendor.bundle.addons.css">
  <link rel="stylesheet" href="inc/theme.css">
  <link rel="shortcut icon" href="/img/favicon.ico" />
</head>

<body>
  <div class="container-scroller">
    <div class="container-fluid page-body-wrapper full-page-wrapper">
      <div class="content-wrapper d-flex align-items-stretch auth auth-img-bg">
        <div class="row flex-grow">
          <div class="col-lg-6 d-flex align-items-center justify-content-center">
            <div class="auth-form-transparent text-left p-3">
              <div class="brand-logo">
                <img src="/img/logo.png" alt="logo">
              </div>
              <form class="pt-3" action="/login-autentica" method="post" name="login">
                <div class="form-group">
                  <label for="exampleInputEmail"><?php echo $lang_login; ?></label>
                  <div class="input-group">
                    <div class="input-group-prepend bg-transparent">
                      <span class="input-group-text bg-transparent border-right-0">
                        <i class="mdi mdi-account-outline text-primary"></i>
                      </span>
                    </div>
                    <input type="text" name="login" class="form-control form-control-lg" placeholder="">
                  </div>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword"><?php echo $lang_senha; ?></label>
                  <div class="input-group">
                    <div class="input-group-prepend bg-transparent">
                      <span class="input-group-text bg-transparent border-right-0">
                        <i class="mdi mdi-lock-outline text-primary"></i>
                      </span>
                    </div>
                    <input type="password" name="senha" class="form-control form-control-lg" placeholder="">
                  </div>
                </div>
                <div class="my-3">
                  <a class="btn btn-block btn-primary btn-lg font-weight-medium auth-form-btn" href="#" onclick="document.login.submit();">Login</a>
                </div>
              </form>
              <?php echo $_SESSION["status_login"]; unset($_SESSION["status_login"]); ?>
            </div>
          </div>
          <div class="col-lg-6 login-half-bg-admin d-flex flex-row">
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src="inc/vendor.bundle.base.js"></script>
  <script src="inc/vendor.bundle.addons.js"></script>
  <script src="inc/theme.js"></script>
</body>

</html>
