@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/* ===============================
   RESET
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', system-ui, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #25252b;
  padding: 20px;
}

/* ===============================
   CONTAINER
================================= */
.container {
  position: relative;
  width: 100%;
  max-width: 750px;
  min-height: 450px;
  border: 2px solid #ff2770;
  box-shadow: 0 0 25px #ff2770;
  background: #1e1e23;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 20px;
}

/* ===============================
   FORM BOX
================================= */
.container .form-box {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  transition: 0.7s ease;
}

/* LOGIN */
.form-box.login {
  left: 0;
}

/* REGISTER */
.form-box.register {
  right: 0;
  transform: translateX(120%);
  opacity: 0;
}

/* ACTIVE SWITCH */
.container.active .form-box.login {
  transform: translateX(-120%);
  opacity: 0;
}

.container.active .form-box.register {
  transform: translateX(0);
  opacity: 1;
}

/* ===============================
   HEADINGS
================================= */
.form-box h2 {
  font-size: 28px;
  text-align: center;
  color: #fff;
  letter-spacing: 1px;
}

/* ===============================
   INPUT BOX
================================= */
.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 25px;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #fff;
  padding-right: 30px;
  transition: 0.4s;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  color: #fff;
  pointer-events: none;
  transition: 0.4s;
}

/* FLOAT EFFECT */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -6px;
  font-size: 12px;
  color: #ff2770;
}

.input-box i {
  position: absolute;
  top: 50%;
  right: 0;
  font-size: 18px;
  transform: translateY(-50%);
  color: #fff;
  transition: 0.4s;
}

.input-box input:focus ~ i,
.input-box input:valid ~ i {
  color: #ff2770;
}

/* ===============================
   CHECKBOX
================================= */
.checkbox-row {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
}

.checkbox-row input {
  margin-right: 6px;
  accent-color: #ff2770;
}

/* ===============================
   BUTTON
================================= */
.btn {
  width: 100%;
  height: 45px;
  background: transparent;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #ff2770;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 10px;
  transition: 0.4s;
}

.btn::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 300%;
  background: linear-gradient(#25252b, #ff2770, #25252b, #ff2770);
  top: -100%;
  left: 0;
  z-index: -1;
  transition: 0.5s;
}

.btn:hover::before {
  top: 0;
}

.btn:hover {
  color: #fff;
  box-shadow: 0 0 15px #ff2770;
}

/* ===============================
   LINKS
================================= */
.switch-link {
  font-size: 14px;
  text-align: center;
  margin: 20px 0 10px;
  color: #fff;
}

.switch-link a {
  text-decoration: none;
  color: #ff2770;
  font-weight: 600;
}

.switch-link a:hover {
  text-decoration: underline;
}

/* ===============================
   INFO CONTENT
================================= */
.info-content {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 40px;
  z-index: 2;
}

.info-content.login {
  right: 0;
  text-align: right;
}

.info-content.register {
  left: 0;
  transform: translateX(-120%);
  opacity: 0;
}

/* ACTIVE SWITCH */
.container.active .info-content.login {
  transform: translateX(120%);
  opacity: 0;
}

.container.active .info-content.register {
  transform: translateX(0);
  opacity: 1;
}

.info-content h2 {
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.3;
}

.info-content p {
  font-size: 15px;
}

/* ===============================
   CURVED SHAPES
================================= */
.curved-shape {
  position: absolute;
  right: 0;
  top: -5px;
  height: 600px;
  width: 850px;
  background: linear-gradient(45deg, #25252b, #ff2770);
  transform: rotate(10deg) skewY(40deg);
  transform-origin: bottom right;
  z-index: 1;
  transition: 1.5s ease;
}

.container.active .curved-shape {
  transform: rotate(-11deg) skewY(-41deg);
}

.curved-shape2 {
  position: absolute;
  left: 250px;
  top: 100%;
  height: 700px;
  width: 850px;
  background: #25252b;
  border-top: 3px solid #ff2770;
  transform-origin: bottom left;
  transition: 1.5s ease;
}

.container.active .curved-shape2 {
  transform: rotate(11deg) skewY(41deg);
}

/* ===============================
   RESPONSIVE
================================= */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .form-box,
  .info-content {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 20px;
  }

  .info-content.login,
  .info-content.register {
    transform: none;
    opacity: 1;
  }

  .info-content h2 {
    font-size: 24px;
  }

  .curved-shape,
  .curved-shape2 {
    display: none;
  }
}