<div id="index-banner" class="parallax-container">
  <div class="section no-pad-bot"></div>
  <div class="parallax"><img src="<?php echo $oConf->getURLRoot('images/jmdn-group-business-data.jpg'); ?>" alt="Code && Make Cash!" style="max-width: 100px;"></div>
</div>

<?php
if(!isset($_SESSION['user']) or (isset($_SESSION['user']) && $_SESSION['message']['status']=="orange")){ ?>
<div class="container">
  <div class="section">
    <?php
    if(isset($_SESSION['message']['status']) && $_SESSION['message']['status']=="orange"){ ?>
      <div class="row">
        <div class="col s12">
          <div class="card-panel <?php echo $_SESSION['message']['status']; ?>">
            <span class="black-text"><?php echo $_SESSION['message']['content']; ?></span>
          </div>
        </div>
      </div>    
    <?php
      unset($_SESSION['message']);
    }
    ?>
    
    <div class="row">
      <form action="#" class="col s12" id="formLogin" name="formLogin" method="post">
        <div class="row">
          <div class="input-field col s12">
            <input id="formLoginFieldEmail" name="formLoginFieldEmail" type="email" class="validate">
            <label for="formLoginFieldEmail">Email</label>
          </div>
        </div>

        <div class="row">
          <div class="input-field col s12">
            <input id="formLoginFieldPassword" name="formLoginFieldPassword" type="password" class="validate">
            <label for="formLoginFieldPassword">Password</label>
          </div>
        </div>

        <p>
          <label>
            <input id="formLoginCheckboxStayConnected" name="formLoginCheckboxStayConnected" type="checkbox" />
            <span>Stay Connected</span>
          </label>
        </p>

        <div class="row">
          <div class="input-field col s6">
            <button class="btn waves-effect waves-light" id="formLoginButtonSubmit" name="formLoginButtonSubmit" type="submit">Sign in <i class="material-icons right">send</i></button>
          </div>
        </div>
      </form>
    </div>
          
  </div>
</div>
<?php } else { ?>
  <div class="container">
    <div class="row">
      <div class="col s12">
        <div class="card-panel <?php echo $message['status']; ?>">
          <span class="white-text"><?php echo $message['content']; ?>
          </span>
        </div>
      </div>
    </div>    
  </div>
<?php } ?>
