<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 /*
<div class="login-box">
  <div class="login-logo">
  <?php
	    if(!empty($setting['logo_path'])){
	    	$logo_path = $setting['logo_path'];
	    } else{
	    $logo_path = 'images/logo/favicon.ico';
		}
   ?>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg"><a href="<?php echo $this->Url->build('/'); ?>"><img alt="Login Logo" src="<?php echo $this->Url->build('/'.$logo_path); ?>" style="width: 215px;height: 60px;"></a></p>
	<?php if ($msg != '') { ?>
	    <p class="unsuccess"><span class="glyphicon glyphicon-remove"></span> <?php echo $msg; ?></p>
	<?php } ?>
	
	<?php
	echo $this->Form->create('Login');
	?>
	  <?= $this->Flash->render() ?>
      <div class="form-group has-feedback">
        <?php echo $this->Form->input('email', array('required' => 'required', 'class' => 'form-control FormControl1', 'id' => 'inputfeedback1', 'placeholder' => __('Email'), 'label' => false));?>
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
        <?php
		    if (array_key_exists('username', $errors)) {
		        echo '<p class="unsuccess">';
		        if (array_key_exists('_empty', $errors['username'])) {
		            echo $errors['username']['_empty'];
		        }
		        echo '</p>';
		    }
		?>
      </div>
      <div class="form-group has-feedback">
        <?php echo $this->Form->input('password', array('type' => 'password', 'required' => 'required', 'label' => false, 'class' => 'form-control FormControl1', 'id' => 'inputfeedback2', 'placeholder' => __('Password')));?>
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        <?php
		    if (array_key_exists('password', $errors)) {
		        echo '<p class="unsuccess">';
		        if (array_key_exists('_empty', $errors['password'])) {
		            echo $errors['password']['_empty'];
		        }
		        echo '</p>';
		    }
    	?>
      </div>
      <div class="row">
        <div class="col-xs-8">
        </div>
        <!-- /.col -->
        <div class="col-xs-4">
          <button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
        </div>
        <!-- /.col -->
      </div>
    <?php echo $this->Form->end();?>

    <a href="<?php echo $this->Url->build('/users/forgot_password'); ?>"><?php echo __('Forgot your password?'); ?></a>
    <a style="float: right;" href="<?php echo $this->Url->build('/guest'); ?>"><?php echo __('Register'); ?></a><br>

  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

*/ ?>







<?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">
    <?php if((APP_SERVER_HOST_URL == CLIENT_PORTAL_DOMAIN) || (strpos(CLIENT_PORTAL_DOMAIN, $_SERVER['REDIRECT_REDIRECT_SSL_TLS_SNI']) !== false)){?>
        <div style="font-size:35px; color:#fff; padding-bottom:15px; text-align:center; margin-top:50px;"><strong><?php echo CLIENT_PORTAL_DEFAULT_HEADER; ?></strong></div>
     <?php } else {?>
      <div style="font-size:35px; color:#fff; padding-bottom:15px; text-align:center; margin-top:50px;"><strong>London School of Learning Hub</strong></div>
    <?php }?>
    <div class="ka-login">
        <div style="max-width:250px; margin:0 auto 0 auto">
            <!-- <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="width: 215px;height: 60px;">
        <?php } ?>
            
        </div>
        <p>&nbsp;</p>
        <div class="">

      <?php
		echo $this->Form->create('reset_password');
		?>
		  <?= $this->Flash->render() ?>

            <div class="form-group">
                <label for="email">New Password:</label>
                <!-- <input type="email" class="form-control" id="email" placeholder="Enter email" name="email"> -->
          <?php echo $this->Form->input('password', array('required' => 'required', 'class' => 'form-control FormControl1', 'label' => false, 'placeholder' => __('New Password')));?>
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
	        <?php
                if(array_key_exists('password', $errors)){
                    echo '<p class="unsuccess">';
                    if(array_key_exists('_empty', $errors['password']))
                    {
                            echo $errors['password']['_empty'];
                    }
                    if(array_key_exists('length', $errors['password']))
                    {
                            echo $errors['password']['length'];
                    }
                    echo '</p>';
                }
            ?>
            </div>
            <div class="form-group">
                <label for="pwd">Confirm Password:</label>
                <!-- <input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pwd"> -->
          <?php
            echo $this->Form->input('confirm_password', array('type' => 'password', 'required' => 'required', 'class' => 'form-control FormControl1', 'label' => false, 'placeholder' => __('Confirm Password')));
            ?>       <span class="glyphicon glyphicon-lock form-control-feedback"></span>
	       <?php
        if (array_key_exists('confirm_password', $errors)) {
            echo '<p class="unsuccess">';
            if (array_key_exists('_empty', $errors['confirm_password'])) {
                echo $errors['confirm_password']['_empty'];
            }
            if (array_key_exists('match', $errors['confirm_password'])) {
                echo $errors['confirm_password']['match'];
            }
            echo '</p>';
        }
        ?>
            </div>
            <button type="submit" class="btn memberaccessButton">Submit</button>

      <?php echo $this->Form->end();?>

            <p>&nbsp;</p>
            <p>
                <!-- <a href="#">Forgot Password?</a> -->
                <a href="<?php echo $this->Url->build('/login'); ?>"><?php echo __('Login'); ?></a><br></p>
        </div>
    </div>
    <div class="login-copyright"> 
     <?php if((APP_SERVER_HOST_URL == CLIENT_PORTAL_DOMAIN) || (strpos(CLIENT_PORTAL_DOMAIN, $_SERVER['REDIRECT_REDIRECT_SSL_TLS_SNI']) !== false)){?>
        <strong style="text-align:center"><?php echo CLIENT_PORTAL_DEFAULT_FOOTER; ?></strong>
     <?php } else { ?>
        <?php echo MAIN_DOMAIN_FOOTER; ?>
     <?php } ?>
    </div>
<!--    <div class="login-copyright"> <strong style="text-align:center">Copyright © <?php echo COPY_RIGHT_YEAR; ?> <a href="https://readytogoletters.com/" target="blank">M.2.C Academy</a>. </strong> All rights reserved. </div>-->
</div>

