<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body{
      background-image:url('https://images.unsplash.com/photo-1546198632-9ef6368bef12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60');
      background-repeat: no-repeat;
      background-position: center;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }
    .cardd{
      background-image: linear-gradient(to right, rgba(236, 230, 223, 0), rgb(228, 194, 166));
    }
   
  </style>
</head>
<body>
  <div class="row mt-5">
    <div class="col-md-6 m-auto">
      <div class="card card-body cardd">
        <h1 class="text-center mb-3">
          <i class="fas fa-book-open"></i> Register
        </h1>
        <%- include('/github/Quiz-Management-System/partials/messages.ejs') %>
        <form action="/users/register" method="POST">
          <div class="form-group">
            <label for="name">Student Name</label>
            <input
              type="name"
              id="name"
              name="name"
              class="form-control"
              placeholder="Enter Name"
              value="<%= typeof name != 'undefined' ? name : '' %>"/>
          </div>
          <div class="form-group">
            <label for="email">Student Email</label>
            <input
              type="email"
              id="email"
              name="email"
              class="form-control"
              placeholder="Enter Email"
              value="<%= typeof email != 'undefined' ? email : '' %>"/>
          </div>
          <div class="form-group">
            <label for="password">Password</label>
            <input
              type="password"
              id="password"
              name="password"
              class="form-control"
              placeholder="Create Password"
              value="<%= typeof password != 'undefined' ? password : '' %>"/>
          </div>
          <div class="form-group">
            <label for="password1">Confirm Password</label>
            <input
              type="password"
              id="password1"
              name="password1"
              class="form-control"
              placeholder="Confirm Password"
              value="<%= typeof password1 != 'undefined' ? password1 : '' %>"/>
          </div>
          <button type="submit" class="btn btn-primary btn-block">
            Register
          </button>
        </form>
        <p class="lead mt-4">Have An Account? <a href="/users/login">Login</a></p>
      </div>
    </div>
  </div>



    

</body>
</html>