<?php require_once "../php/insertUsers.php"; ?>

<!DOCTYPE html>
<html lang="en">


<head>


  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Innovatex</title>

  <link rel="icon" type="image/png" href="images/favicon.png" />
  <!-- Livewire Styles -->
  <style>
    [wire\:loading][wire\:loading],
    [wire\:loading\.delay][wire\:loading\.delay],
    [wire\:loading\.inline-block][wire\:loading\.inline-block],
    [wire\:loading\.inline][wire\:loading\.inline],
    [wire\:loading\.block][wire\:loading\.block],
    [wire\:loading\.flex][wire\:loading\.flex],
    [wire\:loading\.table][wire\:loading\.table],
    [wire\:loading\.grid][wire\:loading\.grid],
    [wire\:loading\.inline-flex][wire\:loading\.inline-flex] {
      display: none;
    }

    [wire\:loading\.delay\.none][wire\:loading\.delay\.none],
    [wire\:loading\.delay\.shortest][wire\:loading\.delay\.shortest],
    [wire\:loading\.delay\.shorter][wire\:loading\.delay\.shorter],
    [wire\:loading\.delay\.short][wire\:loading\.delay\.short],
    [wire\:loading\.delay\.default][wire\:loading\.delay\.default],
    [wire\:loading\.delay\.long][wire\:loading\.delay\.long],
    [wire\:loading\.delay\.longer][wire\:loading\.delay\.longer],
    [wire\:loading\.delay\.longest][wire\:loading\.delay\.longest] {
      display: none;
    }

    [wire\:offline][wire\:offline] {
      display: none;
    }

    [wire\:dirty]:not(textarea):not(input):not(select) {
      display: none;
    }

    :root {
      --livewire-progress-bar-color: #2299dd;
    }

    [x-cloak] {
      display: none !important;
    }
  </style>
  <link rel="preload" as="style" href="build/assets/app-iOLLC2Yq.css" />
  <link rel="modulepreload" href="build/assets/app-IWHowsJd.js" />
  <link rel="stylesheet" href="build/assets/app-iOLLC2Yq.css" data-navigate-track="reload" />
  <script type="module" src="build/assets/app-IWHowsJd.js" data-navigate-track="reload"></script>
</head>

<body class="h-full flex bg-black overflow-hidden">
  <div class="w-full flex flex-col">
    <div class="w-full flex h-full">
      <div x-data="alert">
        <div x-cloak x-show="error"
          class="w-full fixed bg-[#a51414] text-center text-white py-2 text-xl z-[1000000000000] top-0 right-0">
          <p x-text="msg"></p>
        </div>

        <div x-cloak x-show="success"
          class="w-full fixed bg-[green] text-center text-white py-2 text-xl z-[100000000] top-0 right-0">
          <p x-text="msg"></p>
        </div>
      </div>

      <div class="hidden w-1/2 lg:flex flex-col items-center">
        <img src="images/signup-bg.png" class="h-full w-full object-cover object-center" alt="" />

        <div class="absolute z-50 top-28 lg:w-[561px] text-center !text-white flex items-center flex-col gap-y-4">
          <img class="w-[130.95px]" src="images/logo.png" class="" alt="" />

          <b class="text-[32px] font-[700]">
            Buy & Sell Each Digital Cryptocurrency and stocks
          </b>
          <p class="font-[400] text-[14px] lg:w-[375px]">
            Easily buy Bitcoin and other cryptocurrencies using a wide range
            of payment options. Discover exclusive digital collectibles using
            InCrypto today
          </p>
        </div>
      </div>

      <div class="text-white overflow-y-auto lg:w-1/2 w-full h-full bg-dark grid place-items-center p-4">
        <div class="lg:w-[362px] flex flex-col lg:gap-40 gap-20 w-full">
          <div class="flex flex-col gap-6 w-full">
            <h2 class="text-white font-[700] text-[24px] text-center">
              Create Account
            </h2>
            <form action="register.php" method="post">

              <?php
                      if(count($errors) == 1){
                       ?>
                       <div class="alert alert-danger text-center">
                           <?php
                           foreach($errors as $showerror){
                               echo $showerror;
                           }
                           ?>
                       </div>
                       <?php
                   }elseif(count($errors) > 1){
                       ?>
                       <div class="alert alert-danger">
                           <?php
                           foreach($errors as $showerror){
                               ?>
                               <li><?php echo $showerror; ?></li>
                               <?php
                           }
                           ?>
                       </div>
                       <?php
                   }

                   ?>






              <div class="flex flex-col gap-2 w-full">
                <label class="text-[14px] font-light">Full name</label>
                <input name="name" placeholder="Full name" type="text"
                  class="lg:min-w-[361px] w-full p-3 text-[12px] font-light bg-transparent rounded-lg border border-[#333333]" />
              </div>

              <div class="flex flex-col gap-2 w-full">
                <label class="text-[14px] font-light">Email Address</label>
                <input name="email" placeholder="Enter Email" type="email"
                  class="lg:min-w-[361px] w-full p-3 text-[12px] font-light bg-transparent rounded-lg border border-[#333333]" />
              </div>

              <div class="flex flex-col gap-2 w-full">
                <label class="text-[14px] font-light">Phone number</label>
                <input name="number" placeholder="Phone number" type="text"
                  class="lg:min-w-[361px] w-full p-3 text-[12px] font-light bg-transparent rounded-lg border border-[#333333]" />
              </div>
              <div class="flex flex-col gap-2 w-full">
                <label class="text-[14px] font-light">Country</label>
                <input name="country" placeholder="Nationality" type="text"
                  class="lg:min-w-[361px] w-full p-3 text-[12px] font-light bg-transparent rounded-lg border border-[#333333]" />
              </div>
              <div class="grid gap-[5px] w-full">
                <label class="text-[14px] font-light">Account Type</label>
                <select required name="acctype" class="w-full bg-red rounded-lg p-3 text-[14px] font-[700]">
                  <option value="">SELECT ACCOUNT TYPE</option>
                  <option value="Bitcoin Mining">Bitcoin Mining</option>
                  <option value="Options Trading">Options/CFD Trading</option>
                  <option value="Copy Trading">Copy Trading</option>
                </select>
              </div>

              <div class="grid gap-[5px] w-full">
                <label class="text-[14px] font-light">Currency</label>
                <select required name="currency" class="w-full bg-red rounded-lg p-3 text-[14px] font-[700]">
                  <option value="">Select Currency</option>
                  <option value="USD">Dollar</option>
                  <option value="GBP">Pounds</option>
                  <option value="EUR">Euro</option>
                  <option value="YEN">Yen</option>
                </select>
              </div>
              <div class="flex flex-col gap-2 w-full">
                <label class="text-[14px] font-light">Password</label>
                <input name="password" placeholder="Enter Password" type="password"
                  class="lg:min-w-[361px] w-full p-3 text-[12px] font-light bg-transparent rounded-lg border border-[#333333]" />
              </div>

              <div class="flex flex-col gap-2 w-full">
                <label class="text-[14px] font-light">Confirm Password</label>
                <input name="confirmpassword" placeholder="Enter Password" type="password"
                  class="lg:min-w-[361px] w-full p-3 text-[12px] font-light bg-transparent rounded-lg border border-[#333333]" />
              </div>

              <div class="text-start text-[14px] font-light text-[#848484] items-center flex gap-2">
                <input type="checkbox" />
                <span> I Accept the Terms </span>
              </div>

              <div class="w-full relative">
                <button name="signup" type="submit" class="w-full bg-red rounded-lg p-3 text-[14px] font-[700]">
                  Sign up
                </button>
              </div>

              <div class="text-center text-[14px] font-light text-[#848484]">
                Already have an Account?
                <a class="text-white font-[700]" href="login.php">Login</a>
              </div>
            </form>
          </div>
        </div>
      </div>

    </div>
  </div>
</body>
<!-- Smartsupp Live Chat script -->
<script src="//code.jivosite.com/widget/GCSlIOBwTh" async></script>


</html>
