@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@400;500;700&display=swap");

@font-face {
  font-family: "Andale Mono";
  src: url(../fonts/AndaleMono.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
}

section {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#0e480e, #176517, #0d8c40);
  animation: animate 5s linear infinite;
}

@keyframes animate {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

section span {
  position: relative;
  display: block;
  width: calc(6.25vw - 2px);
  height: calc(6.25vw - 2px);
  background: #031003;
  z-index: 2;
  transition: 1.5s;
}

section span:hover {
  background: bisque;
  transition: 0s;
}

section .signup {
  position: absolute;
  width: 90%;
  max-width: 400px;
  background: #222;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

section .signup .content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

section .signup .content h2 {
  font-size: 1.8em;
  color: #fad932;
  text-transform: uppercase;
  text-align: center;
}

section .signup .content .form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

section .signup .content .form .inputBox {
  position: relative;
  width: 100%;
}

section .signup .content .form .inputBox input {
  width: 100%;
  background: #333;
  border: none;
  outline: none;
  padding: 15px 10px 5px;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  font-size: 1em;
}

section .signup .content .form .inputBox i {
  position: absolute;
  left: 0;
  padding: 10px 10px;
  font-style: normal;
  color: #aaa;
  transition: 0.5s;
  pointer-events: none;
}

.signup .content .form .inputBox input:focus ~ i,
.signup .content .form .inputBox input:valid ~ i {
  transform: translateY(-7.5px);
  font-size: 0.8em;
  color: #fff;
}

.signup .content .form .links {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.signup .content .form .links a {
  color: #fad932;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

.signup .content .form .inputBox input[type="submit"] {
  padding: 10px;
  background: #fad932;
  color: #000;
  font-weight: 600;
  font-size: 1.2em;
  letter-spacing: 0.05em;
  cursor: pointer;
}

input[type="submit"]:active {
  opacity: 0.6;
}

@media (max-width: 900px) {
  section span {
    width: calc(10vw - 2px);
    height: calc(10vw - 2px);
  }

  section .signup {
    padding: 15px;
  }

  section .signup .content h2 {
    font-size: 1.6em;
  }
}

@media (max-width: 600px) {
  section span {
    width: calc(15vw - 2px);
    height: calc(15vw - 2px);
  }

  section .signup .content h2 {
    font-size: 1.4em;
  }

  section .signup .content .form .inputBox input {
    font-size: 0.9em;
    padding: 12px;
  }

  section .signup .content .form .links a {
    font-size: 0.8em;
  }
}

@media (max-width: 400px) {
  section span {
    width: calc(20vw - 2px);
    height: calc(20vw - 2px);
  }

  section .signup .content h2 {
    font-size: 1.2em;
  }

  section .signup .content .form .inputBox input {
    font-size: 0.8em;
  }

  section .signup .content .form .links a {
    font-size: 0.7em;
  }

  section .signup .content .form .inputBox input[type="submit"] {
    font-size: 1em;
  }
}
