<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="wpoceans">
    <title>Eagle Winks Cash Flow - It pays to have friends</title>
    <link href="assets/css/themify-icons.css" rel="stylesheet">
    <link href="assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="assets/css/flaticon.css" rel="stylesheet">
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/animate.css" rel="stylesheet">
    <link href="assets/css/owl.carousel.css" rel="stylesheet">
    <link href="assets/css/owl.theme.css" rel="stylesheet">
    <link href="assets/css/slick.css" rel="stylesheet">
    <link href="assets/css/slick-theme.css" rel="stylesheet">
    <link href="assets/css/swiper.min.css" rel="stylesheet">
    <link href="assets/css/owl.transitions.css" rel="stylesheet">
    <link href="assets/css/jquery.fancybox.css" rel="stylesheet">
    <link href="assets/css/odometer-theme-default.css" rel="stylesheet">
    <link href="assets/css/nice-select.css" rel="stylesheet">
    <link href="assets/css/signup.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
     <link rel="icon" href="https://eaglewinks.com/assets/images/favicon.png" type="image/png" sizes="16x16">

</head>

<body>
   
    <div class="wpo-login-area">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="text-center">
                        <a href="#"><img src="assets/images/logo.png" alt="" width="250px"></a><br><br>
                    </div>
                    <form class="wpo-accountWrapper" id="register" method="post" action="">
                        
                        <div class="wpo-accountForm form-style">
                            <div class="fromTitle">
                                <h2>Login</h2>
                                <p>Sign into your account</p>
                                <p id="msg">
                                    
                                </p>
                            </div>
                            <div class="row">
                                <div class="col-lg-12 col-md-12 col-12">
                                    <label>Email</label>
                                    <input type="text" id="email" name="email" placeholder="">
                                </div>
                                <div class="col-lg-12 col-md-12 col-12">
                                    <div class="form-group">
                                        <label >Password</label>
                                        <input class="pwd6" type="password" placeholder=""  value="" name="password">
                                    </div>
                                    <span class="input-group-btn">
                                        <button class="btn btn-default reveal6" type="button"><i class="glyphicon glyphicon-eye-open"></i></button>
                                    </span>
                                </div>
                                <!--
                                <div class="col-lg-12 col-md-12 col-12">
    								<div class="g-recaptcha" data-sitekey="6LcVt9sbAAAAAEcMI0ZUUEM3J5IRqhw6F3MwyqTm"></div>
    							</div>-->
                                <div class="col-lg-12 col-md-12 col-12">
                                    <div class="check-box-wrap">
                                        <div class="input-box">
                                            <input type="checkbox" id="fruit4" name="fruit-4" value="Strawberry">
                                            <label for="fruit4">Remember Me</label>
                                        </div>
                                        <div class="forget-btn">
                                            <a href="forgot">Forgot Password?</a>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-12 col-12">
                                    <button type="submit" class="wpo-accountBtn submit">Login</button>
                                </div>
                            </div>
                          
                            <p class="subText">Don't have an account? <a href="register">Create free account</a></p>
                        </div>
                        
                        
                        <div class="wpo-accountInfo">
                            <div class="wpo-accountInfoHeader">
                                <a href="#"><img src="assets/images/logo.png" alt=""></a>
                                    <a class="wpo-accountBtn" href="register">
                                        <span class="">Create Account</span>
                                    </a>
                            </div>
                            <div class="image">
                                <img src="assets/images/login.svg" alt="">
                            </div>
                            <div class="back-home">
                                <a class="wpo-accountBtn" href="/">
                                    <span class="">Back To Home</span>
                                </a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- All JavaScript files
    ================================================== -->
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- Plugins for this template -->
    <script src="assets/js/jquery-plugin-collection.js"></script>
    <!-- Custom script for this template -->
    <script src="assets/js/script.js"></script>
    
    
               <script>
           $('#register').on('submit',function(e){
                e.preventDefault();
                $('#msg').html('');
                //$('.bn').hide();
                $(".submit").attr("disabled",true);
                
                    
                    $.ajax({
                        url: 'process_login.php',
                        type: 'post',
                        data: $("#register").serialize(),
                        beforeSend:function(){
                            $('.submit').html('Please wait..');
                            setTimeout(function(){
                                $('.submit').html('Authenticating..');
                            }, 300);
                            
                            
                        },
                        success: function(data) {
                            //alert(data);
                            //grecaptcha.reset();
                            if(data == 'one'){
                                $('#msg').html('<div class="alert alert-danger" style="width: 100%; background: #00813d; padding: 10px; border-radius: 10px; color: #fff; font-size: 12px;;"><i class="fa fa-check-circle fa-2x"></i>&nbsp;&nbsp;Login Successful. Redirecting....</div>');
                                
                                setTimeout(function(){
                                    window.location = 'user/index';
                                    //window.location = 'success';
                                }, 500);
                            }else if(data == 'two'){
                                
                                $('#email_msg').html('');
                                //$('.bn').show();
                                $('#msg').html('<div style="padding: 8px; background: #b22222; color: #fff; border-radius: 10px; font-size: 12px;"><i class="fa fa-hand-stop-o fa-2x"></i>&nbsp;&nbsp;Invalid Email and Password Combination</div>');
                            }else{
                                alert(data);
                            }
                            $(".submit").removeAttr("disabled",true);
                            $('.submit').html('Log In');
                            
                        } 
                    });   
                    //alert('Working');
                    //$("#submit").removeAttr("disabled",true);// smessage  eout
                    //$('.svsp').hide();
                    //$('.smessage').fadeIn('slow');
                    //$('#eout').html(email);

                
                
            });
        </script> 
</body>
</html>