<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Register | Chatvia - Nodejs Socket.io Chat App</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Node js Socket.io real time working Chat App with Bootstrap 5 and responsive" name="description" />
    <meta content="Themesbrand" name="author" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">
    <!-- Bootstrap Css -->
    <link href="assets/css/bootstrap-dark.min.css" id="bootstrap-dark-style" rel="stylesheet" type="text/css" />
    <link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
    <!-- Icons Css -->
    <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <!-- App Css-->
    <link href="assets/css/app-dark.min.css" id="app-dark-style" rel="stylesheet" type="text/css" />
    <link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" />
    <link href="./assets/css/toastr.min.css" rel="stylesheet" />
    <link href="assets/css/style.css" id="app-style" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="container-fluid loader_bg">
        <div class="text-center">
            <div class="loader">
                <span></span>
                <span></span>
            </div>
        </div>
    </div>
    <div class="account-pages my-5 pt-sm-5">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-md-8 col-lg-6 col-xl-5">
                    <div class="text-center mb-4">
                        <a href="/" class="auth-logo mb-5 d-block">
                            <img src="assets/images/logo-dark.png" alt="" height="30" class="logo logo-dark">
                            <img src="assets/images/logo-light.png" alt="" height="30" class="logo logo-light">
                        </a>
                        <h4>Sign up</h4>
                        <p class="text-muted mb-4">Get your Chatvia account now.</p>
                    </div>

                    <div class="error_message"></div>

                    <div class="card">
                        <div class="card-body p-4">
                            <div class="p-3">
                                <form id="comment_form" method="post" class="form--signup" autocomplete="on">
                                    <div class="mb-3">
                                        <label class="form-label">Username</label>
                                        <div class="input-group bg-soft-light mb-3 rounded-3">
                                            <span class="input-group-text border-light text-muted" id="basic-addon6">
                                                <i class="ri-user-2-line"></i>
                                            </span>
                                            <input type="text" id="name"
                                                class="form-control form-control-lg bg-soft-light border-light"
                                                placeholder="Enter Username" aria-label="Enter Username"
                                                aria-describedby="basic-addon6" autocomplete="off">
                                        </div>
                                        <span id="userName" class="text-danger font-weight-bold"></span>
                                    </div>

                                    <div class="mb-3">
                                        <label class="form-label">Email</label>
                                        <div class="input-group bg-soft-light rounded-3  mb-3">
                                            <span class="input-group-text text-muted" id="basic-addon5">
                                                <i class="ri-mail-line"></i>
                                            </span>
                                            <input type="email" id="email"
                                                class="form-control form-control-lg bg-soft-light border-light"
                                                placeholder="Enter Email" aria-label="Enter Email"
                                                aria-describedby="basic-addon5">
                                        </div>
                                        <span id="userEmail" class="text-danger font-weight-bold"></span>
                                    </div>

                                    <div class="mb-4">
                                        <label class="form-label">Password</label>
                                        <div class="input-group bg-soft-light mb-3 rounded-3">
                                            <span class="input-group-text border-light text-muted" id="basic-addon7">
                                                <i class="ri-lock-2-line"></i>
                                            </span>
                                            <input type="password" id="password"
                                                class="form-control form-control-lg bg-soft-light border-light"
                                                placeholder="Enter Password" aria-label="Enter Password"
                                                aria-describedby="basic-addon7">
                                        </div>
                                        <span id="userPass" class="text-danger font-weight-bold"></span>
                                    </div>

                                    <div class="mb-4">
                                        <label class="form-label">Location</label>
                                        <div class="input-group bg-soft-light mb-3 rounded-3">
                                            <span class="input-group-text border-light text-muted" id="basic-addon7">
                                                <i class="ri-user-location-line"></i>
                                            </span>
                                            <input type="text" id="location"
                                                class="form-control form-control-lg bg-soft-light border-light"
                                                placeholder="Enter Location" aria-label="Enter Location"
                                                aria-describedby="basic-addon7">
                                        </div>
                                        <span id="userLocation" class="text-danger font-weight-bold"></span>
                                    </div>

                                    <div class="mb-4">
                                        <div class="g-recaptcha" data-sitekey="<%= process.env.CAPTCHA_SITEKEY %>">
                                        </div>
                                    </div>

                                    <div class="d-grid">
                                        <button class="btn btn-primary waves-effect waves-light" type="submit">Sign
                                            up</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>

                    <div class="mt-5 text-center">
                        <p>Already have an account ? <a href="login" class="fw-medium text-primary"> Signin </a> </p>
                        <p>© <script>
                                document.write(new Date().getFullYear())
                            </script> Chatvia. Crafted with <i class="mdi mdi-heart text-danger"></i> by Themesbrand</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- end account-pages -->

    <!-- JAVASCRIPT -->
    <script src="assets/libs/jquery/jquery.min.js"></script>
    <script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="assets/libs/simplebar/simplebar.min.js"></script>
    <script src="assets/libs/node-waves/waves.min.js"></script>
    <script src='https://www.google.com/recaptcha/api.js'></script>
    <script src="assets/js/jquery.form.min.js"></script>
    <script src="/socket.io/socket.io.js"></script>
    <script src="/js/axios.min.js"></script>
    <script src="/js/login.js"></script>
    <script src="assets/js/app.js"></script>
    <script src="./assets/js/toastr.min.js"></script>

</body>
</html>