<?php include("includes/header.php"); ?>
<!DOCTYPE html>
<html>
<head>
  <title><?php echo $sitename; ?> | Login and start trading.</title>
  
    <meta name="description" lang="en" content='<?php echo $sitename; ?> is a leading crypto-asset trading and investment platform, offering a wide array of tools to invest in the cryptocurrency market.' />
    <meta name="keywords" content="Bitcoin trading, Trading,ceypto,crypto trading,Blockchain."/>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <script src="bootstrap/js/jquery.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <!----------------------------------------------------------------------->
    
    
    
    

    <!-- Font Awesome -->
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
    
    <style>
      body{
        background-color: ;
      }
    </style>
    <style>
      .rotate {

        overflow-y: hidden;
          -webkit-animation: spin 40.99s infinite linear;
          animation: spin 40.99s infinite linear;
      }
      @-webkit-keyframes spin {
          100% { -webkit-transform: rotate(360deg); }
      }
      @-moz-keyframes spin {
          100% { -moz-transform: rotate(360deg); }
      }
      @keyframes spin {
          100% {
              -moz-transform:rotate(360deg);
              -o-transform:rotate(360deg);
              transform:rotate(360deg);
          }
      }

      body{
        background-color:#fff;
      }

      .inna-btc{
        position:absolute;
        top:100px;
        left: 150px;
      }


      @keyframes float {
        0% {
          box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
          transform: translatey(0px);
        }
        50% {
          box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);
          transform: translatey(-20px);
        }
        100% {
          box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
          transform: translatey(0px);
        }
      }

      .avatar {
        overflow-x: hidden;
        overflow-y: hidden;
        animation: float 1.9s ease-in-out infinite;
      }
      .bend-img{
          -ms-transform: rotate(45deg); /* IE 9 */
          -webkit-transform: rotate(45deg); /* Safari 3-8 */
          transform: rotate(45deg);
      }
      .fa-check-design{
        padding: 10px 10px;
        border-radius: 100%;
        color: #f2a900;
        border:2px solid #f2a900;
      }
      .input-danger{
        border:1px solid darkred;
        color:darkred;
      }
      .input-danger::placeholder{
        opacity: 0.6;
        color:darkred;
      }
    </style>
    <link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>

    
</head>
<body onload="">
    <?php // include("includes/navbar.php"); ?>
    <br><br><br><br>
    <div class="container">
   <div class="row">
    <div class="col-sm-1"></div>
    <div class="col-sm-4">
      <br><br><br>
      <div><a href="../"><i class="glyphicon glyphicon-arrow-left"></i> BACK</a></div>
      <br>
      <div class="panel panel-default" style="border-radius: 0px;">
        <div class="panel-body">
          <div align="left"><span style="font-size: 25px;">Welcome,</span><br><span>Fill in your account information to login!</span></div>
          <br>

        
         
          <div class="form-group">
            <span id="output"></span><br>
            <label>Account ID:</label>
            <input type="text" id="account_id" class="form-control input-lg" style="border-radius: 0px;" placeholder="" required>
            <span id="email-error" style="color:darkred;"></span>
            <br>

            <label>Passcode:</label>
            <input type="text" id="password" class="form-control input-lg" style="border-radius: 0px;" placeholder="" required>
            
            <br>
            <button type="submit" id="submitbtn" class="btn btn-primary" style="border-radius:0px;"><i id="hide-fa" class="fa  fa-spinner fa-spin"></i> LOGIN</button>
            <br><br><br>
            <div align="right">Don't have an account? <a href="online-registration.php">Register now <i class="fa fa-caret-right"></i></a></div>
            <div align="right"><a href="forget-password.php">Forgot Password ?</a></div>


            <script>
              $(document).ready(function(){
                $("#hide-fa").hide();
                  $("#submitbtn").click(function(){
                      var user_id = $("#account_id").val();
                      var password = $("#password").val();

                      //Validating the forms.....
                      if(user_id == ""){
                         $("#user_id").removeClass('form-control').addClass('form-control input-danger');
                       }else{
                        $("#user_id").removeClass('form-control input-danger').addClass('form-control');
                      }

            
                      if(password == ""){
                         $("#password").removeClass('form-control').addClass('form-control input-danger');
                       }else{
                        $("#password").removeClass('form-control input-danger').addClass('form-control');
                      }

                      if(user_id != "" && password != ""){
                        $("#hide-fa").show();

                            $.ajax({
                        url:"logon_ajax.php",
                        method:"post", 
                        data:{user_id:user_id,password:password},
                        dataType: "text",
                        success: function(data) {
                          $("#output").html(data);
                        }
                        });

                      }else{

                      }




                  });
              });
            </script>

          </div>
        
        </div>
      </div>
      <br><br>

    </div>
    <div class="col-sm-1">
      
    </div>
    <div class="col-sm-5" align="center">
     <div class="hidden-sm hidden-xs"><br><br><br></div>
    <div class=""><img src="images/MeG.gif" width="100%"><br><br></div>

    </div>
    <div class="col-sm-1">
      
    </div>
  </div>
</div>
<?php // include("includes/footer.php"); ?>
</body>
</html>