/* =========================================
   Register Section
========================================= */

.register-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(0, 207, 155, 0.13),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 85%,
      rgba(31, 99, 255, 0.14),
      transparent 28%
    ),
    linear-gradient(
      140deg,
      #020a15 0%,
      #06182c 52%,
      #020b17 100%
    );
  overflow: hidden;
}

.register-container {
  position: relative;
  z-index: 5;
  width: min(820px, 100%);
  margin: 0 auto;
}


/* =========================================
   Background Visuals
========================================= */

.register-background-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 45px 45px;
  animation: registerGridMove 20s linear infinite;
}

.register-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.register-glow-one {
  top: -120px;
  left: -90px;
  width: 300px;
  height: 300px;
  background: rgba(0, 207, 155, 0.1);
  animation: registerGlowOne 9s ease-in-out infinite alternate;
}

.register-glow-two {
  right: -100px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  background: rgba(31, 99, 255, 0.1);
  animation: registerGlowTwo 11s ease-in-out infinite alternate;
}


.register-heading {
  margin-bottom: 30px;
  text-align: center;
  animation: registerHeadingReveal 0.8s ease-out both;
}

.register-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: #38efc3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.register-heading h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}


/* =========================================
   Form Container
========================================= */

.register-form {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(0, 207, 155, 0.12),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: registerFormReveal 0.9s 0.12s ease-out both;
}

.register-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: skewX(-18deg);
  animation: registerShimmer 6s ease-in-out infinite;
}


/* =========================================
   Form Grid
========================================= */

.form-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.form-group label em {
  color: #38efc3;
  font-style: normal;
}

.form-group input {
  width: 100%;
  height: 49px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.form-group input:hover {
  border-color: rgba(0, 207, 155, 0.35);
  background: rgba(255, 255, 255, 0.075);
}

.form-group input:focus {
  transform: translateY(-2px);
  border-color: #00cf9b;
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 4px rgba(0, 207, 155, 0.1),
    0 12px 25px rgba(0, 0, 0, 0.18);
}


/* =========================================
   Submit Button
========================================= */

.submit-button {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 50px;
  margin-top: 24px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #02120f;
  background:
    linear-gradient(
      100deg,
      #00cf9b,
      #38efc3,
      #00cf9b
    );
  background-size: 220% 100%;
  box-shadow: 0 14px 28px rgba(0, 207, 155, 0.22);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  animation: registerButtonFlow 4s linear infinite;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}

.submit-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0, 207, 155, 0.34);
}

.submit-button:hover::before {
  left: 145%;
}

.submit-button:active {
  transform: translateY(-1px);
}

.submit-button span,
.submit-button svg {
  position: relative;
  z-index: 2;
}

.submit-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.submit-button:hover svg {
  transform: translateX(5px);
}


/* =========================================
   Animations
========================================= */

@keyframes registerGridMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 45px 45px;
  }
}

@keyframes registerGlowOne {
  from {
    transform: translate(0, 0) scale(0.95);
  }

  to {
    transform: translate(55px, 35px) scale(1.12);
  }
}

@keyframes registerGlowTwo {
  from {
    transform: translate(0, 0) scale(0.92);
  }

  to {
    transform: translate(-48px, -30px) scale(1.14);
  }
}

@keyframes registerHeadingReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes registerFormReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes registerShimmer {
  0% {
    left: -130%;
  }

  45%,
  100% {
    left: 150%;
  }
}

@keyframes registerButtonFlow {
  from {
    background-position: 0% center;
  }

  to {
    background-position: 220% center;
  }
}


/* =========================================
   Responsive Design
========================================= */

@media (max-width: 700px) {
  .register-section {
    padding: 64px 16px;
  }

  .register-form {
    padding: 27px 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .register-section {
    padding: 52px 13px;
  }

  .register-heading {
    margin-bottom: 24px;
  }

  .register-heading h2 {
    font-size: 27px;
  }

  .register-form {
    padding: 23px 18px;
    border-radius: 17px;
  }

  .form-group input {
    height: 47px;
  }
}



@media (prefers-reduced-motion: reduce) {
  .register-section *,
  .register-section *::before,
  .register-section *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}