<!DOCTYPE html>
<html lang="<?= $this->language ?>">
<head>

  <meta charset="<?= $this->charset ?>">
  <title><?= $this->title ?> - Contao Open Source CMS <?= VERSION ?></title>
  <base href="<?= $this->base ?>">
  <meta name="generator" content="Contao Open Source CMS">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <meta name="referrer" content="origin">

  <link rel="stylesheet" href="<?php
    $objCombiner = new Combiner();
    $objCombiner->add('system/themes/'. $this->theme .'/basic.css');
    $objCombiner->add('system/themes/'. $this->theme .'/login.css');
    echo $objCombiner->getCombinedFile();
  ?>">
  <!--[if IE]><link rel="stylesheet" href="<?= TL_ASSETS_URL ?>system/themes/<?= $this->theme ?>/iefixes.css"><![endif]-->
  <?= $this->stylesheets ?>

  <script><?= $this->getLocaleString() ?></script>
  <script src="<?php
    $objCombiner = new Combiner();
    $objCombiner->add('assets/mootools/core/' . $GLOBALS['TL_ASSETS']['MOOTOOLS'] . '/mootools.js', $GLOBALS['TL_ASSETS']['MOOTOOLS']);
    $objCombiner->add('assets/mootools/mootao/Mootao.js');
    $objCombiner->add('assets/contao/js/core.js');
    echo $objCombiner->getCombinedFile();
  ?>"></script>
  <script><?= $this->getDateString() ?></script>
  <?= $this->javascripts ?>
  <!--[if lt IE 9]><script src="<?= TL_ASSETS_URL ?>assets/html5shiv/<?= $GLOBALS['TL_ASSETS']['HTML5SHIV'] ?>/html5shiv.min.js"></script><![endif]-->

</head>
<body class="<?= $this->ua ?>">

  <div id="header">
    <h1>Contao Open Source CMS <?= VERSION ?></h1>
  </div>

  <div id="container">
    <div id="main">
      <h2><?= $this->headline ?></h2>
      <form action="<?= $this->action ?>" class="tl_login_form" method="post">
        <div class="formbody">
          <input type="hidden" name="FORM_SUBMIT" value="tl_password">
          <input type="hidden" name="REQUEST_TOKEN" value="<?= REQUEST_TOKEN ?>">
          <?= $this->messages ?>
          <table class="tl_login_table">
            <tr>
              <td<?= $this->pClass ?>><label for="password"><?= $this->password ?></label></td>
              <td style="text-align:right"><input type="password" name="password" id="password" class="tl_text" value="" required></td>
            </tr>
            <tr>
              <td<?= $this->pClass ?>><label for="confirm"><?= $this->confirm ?></label></td>
              <td style="text-align:right"><input type="password" name="confirm" id="confirm" class="tl_text" value="" required></td>
            </tr>
          </table>
          <div class="tl_login_submit_container">
            <input type="submit" name="login" id="login" class="tl_submit" value="<?= $this->submitButton ?>">
          </div>
        </div>
      </form>
    </div>
  </div>

  <script>
    window.addEvent('domready', function() {
      if (parent.frames[0] && parent.frames[0].name == 'switch') {
        parent.location.reload();
      }
      $('password').focus();
    });
  </script>

</body>
</html>