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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
  background: #081b29;
  color: #698591;
  font-size: 17px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Open Sans', sans-serif;
  /* color: #444444; */
  font-weight: 500;
}
.logo {
  height: 80px;
}
.wrapper {
  position: relative;
  width: 850px;
  height: 600px;
  background: transparent;
  border: 2px solid #e5e9eb;
  overflow: hidden;
  border-radius: 10px;
  /* box-shadow: 0 0 25px #03a9f5; */
}

.wrapper .form-box {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrapper .form-box.login {
  left: 0;
  padding: 0px 60px 0 40px;
  /* display: none; */
}

.wrapper .form-box.login .animation {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  transition: 0.7s ease;
  transition-delay: calc(0.1s * var(--j));
}

.wrapper.active .form-box.register .animation {
  transform: translateX(-120%);
  opacity: 0;
  filter: blur(10px);
  transition-delay: calc(0.1s * var(--i));
}

.wrapper .form-box.register {
  right: 0;
  padding: 0px 40px 0px 60px;
  /* display: none; */
  pointer-events: none;
}

.wrapper.active .form-box.register {
  pointer-events: auto;
}

.wrapper .form-box.register .animation {
  transform: translateX(120%);
  opacity: 0;
  filter: blur(10px);
  transition: 0.7s ease;
}

.wrapper.active .form-box.register .animation {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(0.1s * var(--i));
}

.form-box h2 {
  font-size: 32px;
  color: #fff;
  text-align: center;
}

.form-box .input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 1.5rem 0;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 2px solid #fff;
  padding-right: 23px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  transition: 0.5s;
}
.input-box select {
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
  border-bottom: 2px solid #fff;
  padding-right: 23px;
  font-size: 16px;
  width: 100%;
  height: 100%;
}

.input-box input:focus,
.input-box input:valid,
.input-box select:focus,
.input-box select:valid {
  border-bottom-color: #142e3a;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  color: #fff;
  pointer-events: none;
  transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box select:valid ~ label,
.input-box select:focus ~ label,
label.focused {
  top: -5px;
  color: #142e3a;
  font-weight: 600;
}

.input-box i {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 18px;
  color: #fff;
  transition: 0.5s;
}

.input-box input:focus ~ i,
.input-box input:valid ~ i {
  color: #142e3a;
}

.btn {
  position: relative;
  width: 100%;
  height: 45px;

  outline: none;
  /* border-radius: 40px; */
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  z-index: 1;
  background-color: #03a9f5;
  overflow: hidden;
  border: none;
}

/* .btn::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  background: linear-gradient(#081b29, #0ef, #081b29, #0ef);
  z-index: -1;
  transition: 0.5s;
} */

.btn:hover::before {
  top: 0;
}

.form-box .logreg-link {
  font-size: 14.5px;
  color: #fff;
  text-align: center;
  margin: 20px 0px 10px;
}

.logreg-link p a {
  color: #03a9f5;
  text-decoration: none;
  font-weight: 600;
}

.logreg-link p a:hover {
  text-decoration: underline;
}

.wrapper .info-text {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrapper .info-text.login {
  right: 0;
  text-align: right;
  padding: 0px 40px 60px 150px;
  /* display: none; */
}

.wrapper .info-text.login .animation {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  transition: 0.7s ease;
  transition-delay: calc(0.1s * var(--j));
}

.wrapper.active .info-text.login .animation {
  transform: translateX(120%);
  opacity: 0;
  filter: blur(10px);
  transition-delay: calc(0.1s * var(--i));
}

.wrapper .info-text.register {
  left: 0;
  text-align: left;
  padding: 0px 150px 60px 40px;
  /* display: none; */
  pointer-events: none;
}

.wrapper.active .info-text.register {
  pointer-events: auto;
}

.wrapper .info-text.register .animation {
  transform: translateX(-120%);
  opacity: 0;
  filter: blur(10px);
  transition: 0.7s ease;
  transition-delay: calc(0.1s * var(--j));
}

.wrapper.active .info-text.register .animation {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(0.1s * var(--i));
}

.info-text h2 {
  font-size: 36px;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
}

.info-text p {
  font-size: 16px;
  color: #fff;
}

.namewrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.namewrapper input {
  width: 100%;
}
.wrapper .bg-animate {
  position: absolute;
  top: 0;
  right: 0;
  width: 850px;
  height: 600px;
  background: linear-gradient(45deg, #0b67a5, #41d6fe);
  /* border-bottom: 3px solid #03a9f5; */
  transform: rotate(10deg) skewY(40deg);
  /* transform: rotate(0) skewY(0); */
  transform-origin: bottom right;
  transition: 1.5s ease;
  transition-delay: 1.6s;
}

.wrapper.active .bg-animate {
  transform: rotate(0) skewY(0);
  transition-delay: 0.5s;
}

.wrapper .bg-animate2 {
  position: absolute;
  top: 100%;
  left: 250px;
  width: 850px;
  height: 700px;
  background: #081b29;
  /* border-top: 3px solid #03a9f5; */

  transform: rotate(0) skewY(0);
  transform-origin: bottom left;
  transition: 1.5s ease;
  transition-delay: 0.5s;
}

.wrapper.active .bg-animate2 {
  transform: rotate(-11deg) skewY(-41deg);
  transition-delay: 1.2s;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .wrapper {
    width: 95%;
    height: 600px;
  }
  .wrapper .info-text.register {
    display: none;
  }
  .wrapper .form-box {
    width: 100%;
  }
  .wrapper .bg-animate2 {
    width: 250px;
    height: 100%;
    left: 90%;
  }
}

@media (max-width: 768px) {
  .wrapper {
    width: 95%;
    height: 600px;
  }
  .wrapper .info-text.register {
    display: none;
  }
  .wrapper .form-box {
    width: 100%;
  }
  .wrapper .bg-animate2 {
    width: 250px;
    height: 100%;
    left: 80%;
  }
}

.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 250, 252, 0.98);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: auto;
}

.success-modal.active {
  opacity: 1;
  visibility: visible;
}

.success-modal .bg-animate {
  position: absolute;
  width: 100px;
  height: 100px;
  background: #41d6fe;
  border-radius: 50%;
  filter: blur(80px);
  animation: animate 10s linear infinite;
  z-index: -1;
}

.success-modal .bg-animate:nth-child(1) {
  top: -10%;
  left: 20%;
  animation-delay: -2s;
}

.success-modal .bg-animate:nth-child(2) {
  bottom: 10%;
  right: 10%;
  animation-delay: -1s;
}

@keyframes animate {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5) translateY(-50px) rotate(180deg);
    opacity: 0.4;
  }
  100% {
    transform: scale(1) translateY(0) rotate(360deg);
    opacity: 0.8;
  }
}

.success-modal .success-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 90%;
  max-width: 550px;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.2s;
}

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

.success-modal .success-icon {
  font-size: 64px;
  color: #28a745;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.success-modal .logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.success-modal h1 {
  color: #0b67a5;
  margin-bottom: 15px;
  font-size: 24px;
}

.success-modal p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 25px;
}

.success-modal .highlight {
  color: #0b67a5;
  font-weight: bold;
}

.success-modal .action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.success-modal .btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.success-modal .btn-primary {
  background: #41d6fe;
  color: white;
  border: none;
}

.success-modal .btn-primary:hover {
  background: #0b67a5;
}

.success-modal .btn-outline {
  background: transparent;
  color: #0b67a5;
  border: 1px solid #0b67a5;
}

.success-modal .btn-outline:hover {
  background: rgba(11, 103, 165, 0.1);
}

.email-note {
  margin-top: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  border-left: 3px solid #41d6fe;
}

.support-info {
  margin-top: 30px;
  font-size: 14px;
  color: #6c757d;
}

.support-info a {
  color: #0b67a5;
  text-decoration: none;
}

.support-info a:hover {
  text-decoration: underline;
}
