<style>
    .message.error {
        background: #fe0000 none repeat scroll 0 0;
        color: #ffffff;
        line-height: 28px;
        font-size:15px;
        text-align:center;
        margin-bottom: 25px !important;
    }

    .message.success {
        background: #337ab7 none repeat scroll 0 0;
        color: #ffffff;
        font-size:15px;
        line-height: 28px;
        text-align:center;
        margin-bottom: 25px !important;
    }

    .ka-login-body .alert-danger{display: none !important;}

</style>

<?php
      if(!empty($setting['logo_path'])){
        $logo_path = $setting['logo_path'];
      } else{
      $logo_path = 'images/logo/favicon.ico';


    }
   ?>
<div class="container-fluid ka-login-body">
  <div style="font-size:35px; color:#fff; padding-bottom:15px; text-align:center; margin-top:50px;"><strong>
    <?php
    $header = 'London School of Learning Hub';


    if((APP_SERVER_HOST_URL == CLIENT_PORTAL_DOMAIN) || (strpos(CLIENT_PORTAL_DOMAIN, $_SERVER['REDIRECT_REDIRECT_SSL_TLS_SNI']) !== false)){
        $header = CLIENT_PORTAL_DEFAULT_HEADER;
    }
    echo $header;
    ?>
</strong></div>

  <div class="ka-login">
    <div style="max-width:250px; margin:0 auto 0 auto;text-align:center">
      <!-- <img src="img/logo.png"  alt="" class="img-responsive ka-logo center-block"/> -->
        <?php if((APP_SERVER_HOST_URL == CLIENT_PORTAL_DOMAIN) || (strpos(CLIENT_PORTAL_DOMAIN, $_SERVER['REDIRECT_REDIRECT_SSL_TLS_SNI']) !== false)){?>
                <img alt="Login Logo" src="<?php echo $this->Url->build(CLIENT_PORTAL_LOGO); ?>" style="max-width: 120px;">
        <?php } else { ?>
                <img alt="Login Logo" src="<?php echo $this->Url->build('/'.$logo_path); ?>" style="max-width: 220px;">
       <?php } ?>
    </div>
    <p>&nbsp;</p>
    <div class="">
      <?php
        echo $this->Form->create('forgot_password');
      ?>
        <?= $this->Flash->render() ?>
        <div class="form-group">
          <label for="email">Email:</label>
          <!-- <input type="email" class="form-control" id="email" placeholder="Enter email" name="email"> -->
          <?php echo $this->Form->input('email', array('required' => 'required', 'type' => 'email', 'class' => 'form-control FormControl1', 'placeholder' => __('Email'), 'label' => false));?>
            <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
            <?php
                if(array_key_exists('email', $errors)){
                    echo '<p class="unsuccess">';
                        if(array_key_exists('_empty', $errors['email']))
                        {
                                echo $errors['email']['_empty'];
                        }
                        if(array_key_exists('validFormat', $errors['email']))
                        {
                                echo $errors['validFormat']['length'];
                        }
                    echo '</p>';
                }
            ?>
        </div>
        <button type="submit" class="btn memberaccessButton">Reset Password</button>
      <?php echo $this->Form->end();?>
      <p>&nbsp;</p>
      <p><a href="<?php echo $this->Url->build('/login'); ?>"><?php echo __('Login'); ?></a><br></p>
    </div>
  </div>

  <div class="login-copyright"> <strong style="text-align:center">
        <?= $this->element('footer') ?>
    </div>
</div>