  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.dark-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:#000;
}

.dark-section {
  position:absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:2px;
  flex-wrap:wrap;
  overflow: hidden;
}

.dark-section::before {
  content:'';
  position:absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#000,#8585ff,#000);
  animation:animate 5s linear infinite;
}
@keyframes animate {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.dark-section span {
  position: relative;
  display: block;
  width:calc(6.25vw - 2px);
  height:calc(6.25vh - 2px);
  background: #181818;
  z-index: 2;
  transition: 1.5s;
}

.dark-section span:hover {
  background:#8585ff ;
  transition: 0s;

}

.dark-section .dark-reset {
  position: absolute;
  width: 500px;
  background: #222;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:40px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.dark-section .dark-reset .dark-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap:40px;
}

  .dark-section .dark-reset .dark-content h2 {
  font-size:2em;
  color:#8585ff;
  text-transform: uppercase;
}

.dark-section .dark-reset .dark-content .dark-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap:25px;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx {
  position: relative;
  width: 100%;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx .dark-verify {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity));
  font-size: 0.8em;
  margin-top: 10px;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx .dark-valid {
  color:#fff;
  font-size: 0.8em;
  margin-top: 15px;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx input {
  position: relative;
  width: 100%;
  background: #8585ff39;
  border:none;
  outline:none;
  padding:25px 10px 7.5px;
  border-radius: 4px;
  color:#fff;
  font-weight: 500;
  font-size: 1em;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx i {
position: absolute;
left:0;
padding:15px 10px;
font-style: normal;
color:#8585ff;
transition: 0.5s;
pointer-events: none;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx input:focus ~ i,
.dark-section .dark-reset .dark-content .dark-form .dark-inputBx input:valid ~ i {
transform: translateY(-7.5px);
font-size: 0.8em;
color:#8585ff;
}

.dark-section .dark-reset .dark-content .dark-form .dark-inputBx input[type="submit"] {
  padding:10px;
  background: #8585ff;
  color:#fff;
  font-weight: 600;
  font-size: 1.25em;
  letter-spacing: 0.05em;
  cursor:pointer;
}

.text-green-500, .text-red-500 {
  margin-right: 0.5rem;
}

.error-message .text-green-500, .error-message .text-red-500 {
  display: inline-block;
}
/* Responsive Media Queries */
/* @media (max-width: 1200px) {
  .dark-section .dark-signup {
    width: 80%;
    padding: 30px;
  }
  
  .dark-section span {
    width: calc(8.33vw - 2px);
    height: calc(8.33vh - 2px);
  }
} */
@media (max-width: 768px) {
  .dark-section .dark-reset {
    width: 80%;
    padding: 20px;
  }

  .dark-section .dark-reset .dark-content h2 {
    font-size: 1.5em;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx {
    flex-direction: column;
    gap: 15px;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx input {
    width: 100%;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .dark-section .dark-reset {
    width: 90%;
    padding: 15px;
  }

  .dark-section .dark-reset .dark-content h2 {
    font-size: 1.25em;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx {
    flex-direction: column;
    gap: 10px;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx input {
    width: 100%;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .dark-section .dark-reset {
    width: 95%;
    padding: 10px;
  }

  .dark-section .dark-reset .dark-content h2 {
    font-size: 1em;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx {
    flex-direction: column;
    gap: 5px;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx input {
    width: 100%;
    padding: 15px 10px 5px;
    font-size: 0.9em;
  }

  .dark-section .dark-reset .dark-content .dark-form .dark-inputBx input[type="submit"] {
    width: 100%;
    padding: 8px;
    font-size: 1em;
  }
}

@media (max-width: 900px) {
  .dark-section span {
   
    width:calc(10vw - 2px);
    height:calc(10vw - 2px);
   
  }
}

@media (max-width: 600px) {
  .dark-section span {
   
    width:calc(20vw - 2px);
    height:calc(20vw - 2px);
   
  }
}

/*light mode*/
.light-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:#ffffff;
}

.light-section {
  position:absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:2px;
  flex-wrap:wrap;
  overflow: hidden;
}

.light-section::before {
  content:'';
  position:absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#fff,#4ab4fb,#fff);
  animation:animate 5s linear infinite;
}
@keyframes animate {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.light-section span {
  position: relative;
  display: block;
  width:calc(6.25vw - 2px);
  height:calc(6.25vh - 2px);
  background: #e9e3e3;
  z-index: 2;
  transition: 1.5s;
}

.light-section span:hover {
  background:#4ab4fb ;
  transition: 0s;

}

.light-section .light-reset {
  position: absolute;
  width: 500px;
  background: #f9f6f6;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:40px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.light-section .light-reset .light-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap:40px;
}

  .light-section .light-reset .light-content h2 {
  font-size:2em;
  color:#4ab4fb ;
  text-transform: uppercase;
}

.light-section .light-reset .light-content .light-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap:25px;
}

.light-section .light-reset .light-content .light-form .light-inputBx {
  position: relative;
  width: 100%;
}

.light-section .light-reset .light-content .light-form .light-inputBx .light-verify {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity));
  font-size: 0.8em;
  margin-top: 10px;
}

.light-section .light-reset .light-content .light-form .light-inputBx .light-valid {
  color:#252525;
  font-size: 0.8em;
  margin-top: 15px;
}

.light-section .light-reset .light-content .light-form .light-inputBx input {
  position: relative;
  width: 100%;
  background: #4ab4fb3d;
  border:none;
  outline:none;
  padding:25px 10px 7.5px;
  border-radius: 4px;
  color:#252525;
  font-weight: 500;
  font-size: 1em;
}

.light-section .light-reset .light-content .light-form .light-inputBx i {
position: absolute;
left:0;
padding:15px 10px;
font-style: normal;
color:#4ab4fb;
transition: 0.5s;
pointer-events: none;
}

.light-section .light-reset .light-content .light-form .light-inputBx input:focus ~ i,
.light-section .light-reset .light-content .light-form .light-inputBx input:valid ~ i {
transform: translateY(-7.5px);
font-size: 0.8em;
color:#4ab4fb;
}

.light-section .light-reset .light-content .light-form .light-inputBx input[type="submit"] {
  padding:10px;
  background: #4ab4fb;
  color:#fff;
  font-weight: 600;
  font-size: 1.25em;
  letter-spacing: 0.05em;
  cursor:pointer;
}
/* Responsive Media Queries */
/* @media (max-width: 1200px) {
  .light-section .light-reset {
    width: 80%;
    padding: 30px;
  }
  
  .light-section span {
    width: calc(8.33vw - 2px);
    height: calc(8.33vh - 2px);
  }
} */
@media (max-width: 768px) {
  .light-section .light-reset {
    width: 80%;
    padding: 20px;
  }

  .light-section .light-reset .light-content h2 {
    font-size: 1.5em;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx {
    flex-direction: column;
    gap: 15px;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx input {
    width: 100%;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .light-section .light-reset {
    width: 90%;
    padding: 15px;
  }

  .light-section .light-reset .light-content h2 {
    font-size: 1.25em;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx {
    flex-direction: column;
    gap: 10px;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx input {
    width: 100%;
  }

  .light-section .light-reset .light-content .dark-form .light-inputBx input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .light-section .light-reset {
    width: 95%;
    padding: 10px;
  }

  .light-section .light-reset .light-content h2 {
    font-size: 1em;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx {
    flex-direction: column;
    gap: 5px;
  }


  .light-section .light-reset .light-content .light-form .light-inputBx input {
    width: 100%;
    padding: 15px 10px 5px;
    font-size: 0.9em;
  }

  .light-section .light-reset .light-content .light-form .light-inputBx input[type="submit"] {
    width: 100%;
    padding: 8px;
    font-size: 1em;
  }
}

@media (max-width: 900px) {
  .light-section span {
   
    width:calc(10vw - 2px);
    height:calc(10vw - 2px);
   
  }
}

@media (max-width: 600px) {
  .light-section span {
   
    width:calc(20vw - 2px);
    height:calc(20vw - 2px);
   
  }
}