<?php 
session_start();
require"inc/auth.php";
include"inc/conn.php";
include"inc/session_siswa.php";
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title><?php echo $rsiswa_login['nama_lengkap'];?> | Ganti Password Akun</title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  <?php 
  include"inc/style.php";
  ?>
  
</head>

<body>

  <?php include"inc/menu.php";?>

  
  <main id="main">
    
    <!-- ======= Breadcrumbs ======= -->
    <section class="breadcrumbs">
      <div class="container">

      </div>
    </section><!-- End Breadcrumbs -->
    

    <!-- ======= Hero Section ======= -->
  <form class="form-horizontal" action="setpassword" method="POST">
  <section id="hero" class="hero d-flex align-items-center" style="margin-top:-130px;">

    <div class="container">
      <div class="row">

        <div class="col-lg-6 hero-img d-none d-sm-block" data-aos="zoom-out" data-aos-delay="200">
          <img src="assets/img/features.png" class="img-fluid" alt="">
        </div>


        <div class="col-lg-6 d-flex flex-column justify-content-center">
          <h1 data-aos="fade-up">Ganti Password Akun</h1>
          <br>
          <div data-aos="fade-up" data-aos-delay="600">

              <div class="row gy-4">
                
                <div class="col-md-12">
                  <input type="password" name="password_lama" class="form-control" placeholder="Password Lama" required>
                </div>

                <div class="col-md-12">
                  <input type="password" name="password_baru1" class="form-control" placeholder="Password Lama" required>
                </div>

                <div class="col-md-12">
                  <input type="password" name="password_baru2" class="form-control" placeholder="Ulangi Password Baru" required>
                  

                  <div id="message" style="margin-top:10px;"></div>
                  <div class="text-center loader" id="loader" style="display:none;">
                    <div class="spinner-border text-primary" role="status" style="margin-top:10px;">
                      <span class="sr-only"></span>
                    </div>
                  </div>
                  
                  <button id="tombollogin" class="btn-get-started scrollto d-inline-flex align-items-center justify-content-center align-self-center" style="width:100%;background:#d7528a;color:white;border:0px;">
                    <span>Ganti Password</span>
                    <i class="bi bi-arrow-right"></i>
                  </button>
                
                </div>

                

              </div>


            <div class="text-center text-lg-start">
              
            </div>
          </div>
        </div>
        
      </div>



    </div>

  </section><!-- End Hero -->
  </form>

    
  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <footer id="footer" class="footer">

    <?php include"inc/footer.php";?>
    
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>

  <?php include"inc/script.php";?>

</body>

</html>