@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --primary: #0070BD;
  --secondary: #00B150;
  --bg: #25252b;
  --text: #ffffff;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg);
}

.container{
  position: relative;
  width: 750px;
  height: 450px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 25px var(--primary);
  overflow: hidden;
}

/* form + info split */
.container .form-box{
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.form-box.Login{ left: 0; padding: 0 40px; }

.form-box h2{
  font-size: 32px;
  text-align: center;
}

.form-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: var(--text);
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,.6);
  transition: .5s;
}

.input-box input:focus,
.input-box input:valid{
  border-bottom: 2px solid var(--primary);
}

.input-box label{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text);
  opacity: .9;
  transition: .5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label{
  top: -5px;
  color: var(--primary);
  opacity: 1;
}

.input-box box-icon{
  position: absolute;
  top: 50%;
  right: 10px;
  font-size: 18px;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.input-box input:focus ~ box-icon,
.input-box input:valid ~ box-icon{
  color: var(--primary) !important;
  fill: var(--primary) !important;
}

/* Buttons */
.btn{
  position: relative;
  width: 100%;
  height: 45px;
  background: transparent;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--primary);
  overflow: hidden;
  z-index: 1;
}
.btn::before{
  content: "";
  position: absolute;
  height: 300%;
  width: 100%;
  background: linear-gradient(var(--bg), var(--secondary), var(--bg), var(--primary));
  top: -100%;
  left: 0;
  z-index: -1;
  transition: .5s;
}
.btn:hover::before{ top: 0; }

/* Feedback */
.feedback{
  margin-top: 10px;
  min-height: 18px;
  font-size: 14px;
}
.feedback.error{ color: #ff6464; }
.feedback.success{ color: #7CFC7C; }

/* Side copy */
.info-content{
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.info-content.Login{ right: 0; text-align: right; padding: 0 40px 60px 150px; }

.info-content.Login .animation{
  transform: translateX(0);
  transition: .7s ease;
  transition-delay: calc(.1s * var(--S));
  opacity: 1;
  filter: blur(0);
}

/* Background shapes */
.container .curved-shape{
  position: absolute;
  right: 0;
  top: -5px;
  height: 600px;
  width: 850px;
  background: linear-gradient(45deg, var(--bg), var(--primary));
  transform: rotate(10deg) skewY(40deg);
  transform-origin: bottom right;
  transition: 1.5s ease;
  transition-delay: 1.6s;
}

.container .curved-shape2{
  position: absolute;
  left: 250px;
  top: 100%;
  height: 700px;
  width: 850px;
  background: var(--bg);
  border-top: 3px solid var(--primary);
  transform: rotate(0deg) skewY(0deg);
  transform-origin: bottom left;
  transition: 1.5s ease;
  transition-delay: .5s;
}

/* Small screens */
@media (max-width: 800px){
  .container{ width: 94vw; height: auto; min-height: 560px; }
  .container .form-box, .info-content{ width: 100%; position: relative; padding: 24px; }
  .info-content{ display: none; }
  .curved-shape, .curved-shape2{ display: none; }
}
