{% extends "base.html" %}

{% block content %}
<style>
body {
  background: #e7f5fe;
  padding-top: 0px;
}

</style>

<form method="POST">
  <section class="vh-100 gradient-custom">
    <div class="container py-5 h-100">
      <div class="row d-flex justify-content-center align-items-center h-100">
        <div class="col-12 col-md-8 col-lg-6 col-xl-5">
          <div class="card bg-dark text-white" style="border-radius: 1rem;">
            <div class="card-body p-5 text-center">
              <div class="mb-md-5 mt-md-4 pb-5">
                <h2 class="fw-bold mb-2 text-uppercase">Sign up</h2>
                <p class="text-white-50 mb-5">Create your Account</p>
                <!--Input: Email-->
                <div class="form-outline form-white mb-3">
                  <label for="email_2"></label>
                  <input 
                    type="email" 
                    class="form-control" 
                    id="email"
                    name="email"
                    placeholder="Insert Email"
                  />
                </div>
                <div class="form-outline form-white mb-3">
                  <label for="email_2"></label>
                  <input 
                    type="email" 
                    class="form-control" 
                    id="email_2"
                    name="email_2"
                    placeholder="Confirm Email"
                  />
                </div>
                <!--Input: Password-->
                <div class="form-outline form-white mb-3">
                  <label for="passwd_1"></label>
                  <input 
                    type="password" 
                    class="form-control" 
                    id="passwd_1"
                    name="passwd_1"
                    placeholder="Enter Password"
                  />
                  <p style="color:grey;">*Use 8 or more characters</p>
                </div>
                <!--Input: Password Confirm-->
                <div class="form-outline form-white mb-3">
                  <label for="passwd_2"></label>
                    <input 
                      type="password" 
                      class="form-control" 
                      id="passwd_2"
                      name="passwd_2"
                      placeholder="Confirm Password"
                    />
                </div>
                <!--Input: Username-->
                <div class="form-outline form-white mb-3">
                  <label for="Nickname"></label>
                  <input 
                    type="text" 
                    class="form-control" 
                    id="username"
                    name="username"
                    placeholder="Insert User Name"
                  />
                </div>
                <p>***(After Register): 1.Required Email Confirmation https://realpython.com/handling-email-confirmation-in-flask/*** </p>
                <p>2. 2FA (Google Authenticator): https://github.com/GitauHarrison/how-to-implement-time-based-two-factor-auth-in-flask</p>
                <!--Button: Sign up-->
                <button class="btn btn-outline-light btn-lg px-5" type="submit">Sign up</button>
              </div>
              <!--Redirect to Login Page-->
              <div>
                <p class="mb-0">Already have an account? <a href="login" class="text-white-50 fw-bold">Login</a></p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</form>
{% endblock %}
