{% load static %}
<!DOCTYPE html>
<html lang="en">

<!-- Mirrored from InterCapitaStock-html.vercel.app/signup.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 09 Jan 2024 19:59:42 GMT -->
<!-- Added by HTTrack -->
<meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>InterCapitaStock</title>
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="{% static 'Crestmaverick-01.png' %}">
    <!-- Owlcarousel -->
    <link rel="stylesheet" href="{% static 'dashboard/plugins/owlcarousel/css/owl.carousel.min.css' %}">
    <!-- Venobox -->
    <link rel="stylesheet" href="{% static 'dashboard/plugins/venobox/venobox.min.css' %}">
    <!-- Custom Stylesheet -->
    <link rel="stylesheet" href="{% static 'dashboard/css/style.css' %}">
</head>

<body>
    <div id="preloader">
        <div class="sk-three-bounce">
            <div class="sk-child sk-bounce1"></div>
            <div class="sk-child sk-bounce2"></div>
            <div class="sk-child sk-bounce3"></div>
        </div>
    </div>





    <div class="main-wrapper">
        <!--===================== Authentication Start =====================-->
        <div class="authentication">
            <div class="container">
                <div class="row justify-content-center align-items-center">
                    <div class="col-12 col-lg-8 col-xl-5">
                        <div class="mini-logo text-center mb-5">
                            <a href="landing.html"><img src="images/logo.png" alt=""></a>
                        </div>
                        <div class="auth-form card">
                            <div class="card-header justify-content-center">
                                <h4 class="card-title">Sign in</h4>
                            </div>
                            <div class="card-body">
                                <form method="post" name="myform" class="signin_validate"
                                    action=".">
                                    {% if error %}
                                    <div class="form-group">
                                        <label style="color:red;">{{ error }}</label>
                                        
                                    </div>
                                    {% endif %}
                                    {% csrf_token %}
                                    <div class="form-group">
                                        <label>Email</label>
                                        <input type="text" class="form-control" placeholder="hello@example.com"
                                            name="username">
                                    </div>
                                    <div class="form-group">
                                        <label>Password</label>
                                        <div class="input-group">
                                            <input type="password" class="form-control" placeholder="Password"
                                                name="password" id="passwordInput">
                                            <div class="input-group-append">
                                                <span class="input-group-text" id="togglePassword">
                                                    <i class="fa fa-eye" aria-hidden="true" id="eyeIcon"></i>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-row d-flex justify-content-between mt-4 mb-2">
                                        <div class="form-group mb-0">
                                            <label class="toggle">
                                                <input class="toggle-checkbox" type="checkbox">
                                                <div class="toggle-switch"></div>
                                                <span class="toggle-label">Remember me</span>
                                            </label>
                                        </div>
                                        {% comment %} <div class="form-group mb-0">
                                            <a href="reset.html">Forgot Password?</a>
                                        </div> {% endcomment %}
                                    </div>
                                    <div class="text-center">
                                        <button type="submit" class="btn btn-success w-100">Sign in</button>
                                    </div>
                                </form>
                                <div class="new-account mt-3">
                                    <p>Don't have an account? <a class="text-primary" href="{% url "account:signup" %}">Sign
                                            up</a></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--===================== Authentication End =====================-->
    </div>

    <script src="{% static 'dashboard/plugins/jquery/jquery.min.js' %}"></script>
    <script src="{% static 'dashboard/plugins/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
    <script src="{% static 'dashboard/plugins/validator/jquery.validate.js' %}"></script>
    <script src="{% static 'dashboard/plugins/validator/validator-init.js' %}"></script>
    <script src="{% static 'dashboard/js/scripts.js' %}"></script>
     <script>
        document.addEventListener('DOMContentLoaded', function () {
            const passwordInput = document.getElementById('passwordInput');
            const eyeIcon = document.getElementById('eyeIcon');
            const togglePassword = document.getElementById('togglePassword');

            togglePassword.addEventListener('click', function () {
                const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
                passwordInput.setAttribute('type', type);

                // Change the eye icon based on the password visibility
                eyeIcon.classList.toggle('fa-eye-slash');
            });
        });
    </script>
</body>

</html>