{% load static %}
<!DOCTYPE html>
<html lang="en">
    <head>
     
        <title>Login - Notes Sharing System</title>
        <link href="{% static 'assets/css/styles.css' %}" rel="stylesheet" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js" crossorigin="anonymous"></script>
    </head>
    <body class="bg-primary">
        <div id="layoutAuthentication">
            <div id="layoutAuthentication_content">
                <main>
                    <div class="container">
                        <p style="padding-top: 30px;text-align: center;font-size: 30px;">Notes Sharing System</p>

                        <div class="row justify-content-center">
                            <div class="col-lg-5">
                                <div class="card shadow-lg border-0 rounded-lg mt-5">
                                    <div class="card-header"><h3 class="text-center font-weight-light my-4">Signup</h3></div>
                                    <div class="card-body">
                                        <form action=""  method="POST" enctype="multipart/form-data">
                                            {% csrf_token %}
                                            {% if messages %}
                       {% for message in messages %}
                        {% if message.tags == 'error' %}
                       <div class="alert alert-warning alert-dismissible fade show" role="alert">
                       {{message}}
                       <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                        </button>
                         </div>
                       {% endif %}
                       {% endfor %}
                       {% endif %}
                          {% if messages %}
                       {% for message in messages %}
                        {% if message.tags == 'success' %}
                       <div class="alert alert-warning alert-dismissible fade show" role="alert">
                       {{message}}
                       <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                        </button>
                         </div>
                       {% endif %}
                       {% endfor %}
                       {% endif %}
                                            <div class="form-floating mb-3">
                                                <input id="pic" type="file" class="form-control" name="pic" required="true">
                                                <label for="inputEmail">Profile Pic</label>
                                            </div>
                                            <div class="form-floating mb-3">
                                                <input id="first_name" type="text" class="form-control" placeholder="First Name" name="first_name" required="true">
                                                <label for="inputPassword">First Name</label>
                                            </div>
                                            <div class="form-floating mb-3">
                                                <input id="last_name" type="text" class="form-control" placeholder="Last Name" name="last_name" required="true">
                                                <label for="inputPassword">Last Name</label>
                                            </div>
                                            <div class="form-floating mb-3">
                                                <input id="email" type="email" class="form-control" placeholder="Email" name="email" required="true">
                                                <label for="inputPassword">Email</label>
                                            </div>
                                            <div class="form-floating mb-3">
                                                <input id="username" type="text" class="form-control" placeholder="Enter Username" name="username" required="true">
                                                <label for="inputPassword">Username</label>
                                            </div>
                                            <div class="form-floating mb-3">
                                                <input id="mobno" type="text" class="form-control" placeholder="Mobile" name="mobno" maxlength="10" pattern="[0-9]+" required="true">
                                                <label for="inputPassword">Mobile Number</label>
                                            </div>
                                            <div class="form-floating mb-3">
                                                <input id="password" type="password" class="form-control" placeholder="Password" name="password" required="true">
                                                <label for="inputPassword">Password</label>
                                            </div>
                                       
                                            <div class="d-flex align-items-center justify-content-between mt-4 mb-0">
                                              
                                                <button class="btn btn-primary" type="submit">Signup</button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class="card-footer text-center py-3">
                                        <div class="small"><a href="{% url 'login' %}">Do you have an account</a></div>
                                    </div>
                                    <div class="card-footer text-center py-3">
                                        <div class="small"><a href="{% url 'index' %}">Home</a></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </main>
            </div>
            <br>
            <div id="layoutAuthentication_footer">
                <footer class="py-4 bg-light mt-auto">
                    <div class="container-fluid px-4">
                        <div class="d-flex align-items-center justify-content-between small">
                            <div class="text-muted">Notes Sharing System</div>

                        </div>
                    </div>
                </footer>
            </div>
        </div>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
        <script src="{% static 'assets/js/scripts.js' %}"></script>
    </body>
</html>
