body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(90deg, #e2e2e2, #c9d6ff);
}
.container-form{
  position: relative;
  width: 850px;
  height: 550px;
  background: #fff;
  margin: 20px;
  border-radius: 30px;
  box-shadow: 0 0 30px rgba(0, 0, 0, .2);
  overflow: hidden;
}
.container-form h1{
  font-size: 36px;
  margin: -10px 0;
}
.container-form p{
  font-size: 14.5px;
  margin: 15px 0;
}
.container-form form{ 
  width: 100%; 
}
.container-form .form-box{
  position: absolute;
  right: 0;
  width: 70%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  color: #333;
  text-align: center;
  padding: 40px;
  z-index: 1;
  transition: width .6s ease-in-out 1.2s,  visibility 0s 1s;
}
.container-form.active .form-box{ 
  right: 50%; 
}
.container-form .form-box.register{ 
  visibility: hidden; 
}
.container-form.active .form-box.register{ 
  visibility: visible; 
}
.container-form .form-box .input-box{
  position: relative;
  margin: 30px 0;
}
.container-form .form-box .input-box input{
  width: 100%;
  padding: 13px 50px 13px 20px;
  background: #eee;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}
.container-form .input-box input::placeholder{
  color: #888;
  font-weight: 400;
}
.container-form .input-box i{
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.container-form .forgot-link{ 
  margin: -15px 0 15px; 
}
.container-form .forgot-link a{
  font-size: 14.5px;
  color: #333;
}
.container-form .btn{
  width: 100%;
  height: 48px;
  background: #5A1236;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
.container-form .toggle-box{
  position: absolute;
  width: 100%;
  height: 100%;
}
.container-form .toggle-box::before{
    content: '';
    position: absolute;
    left: -270%;
    width: 300%;
    height: 100%;
    background: #5A1236;
    border-radius: 4rem;
    transition: all 1.8s ease-in-out;
    z-index: 2;
    -webkit-transition: all 1.8s ease-in-out;
    -moz-transition: all 1.8s ease-in-out;
    -ms-transition: all 1.8s ease-in-out;
    -o-transition: all 1.8s ease-in-out;
    -webkit-border-radius: 4rem;
    -moz-border-radius: 4rem;
    -ms-border-radius: 4rem;
    -o-border-radius: 4rem;
}
.container-form.active .toggle-box::before{ 
    left: 50%; 
}
.container-form .toggle-panel{
    position: absolute;
    width: 30%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: all .4s ease-in-out;
    z-index: 2;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
}
.container-form .toggle-panel img{
  width: auto;
  max-height: 120px;
  object-fit: contain;
}
.container-form .toggle-panel.toggle-left{ 
  left: 0;
  transition-delay: 1.2s; 
}
.container-form.active .toggle-panel.toggle-left{
  left: -50%;
  transition-delay: .6s;
}
.container-form .toggle-panel.toggle-right{ 
  right: -50%;
  transition-delay: .6s;
}
.container-form.active .toggle-panel.toggle-right{
  right: 0;
  transition-delay: 1.2s;
}
.container-form .toggle-panel p{ 
  margin-bottom: 20px; 
}
.container-form .toggle-panel .btn{
  width: 160px;
  height: 46px;
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}
@media screen and (max-width: 991px) {
    .container-form{ 
        height: calc(100vh - 40px); 
        width: calc(100vw - 40px);
    }
    .container-form .form-box {
        width: 100%;
    }    
    .container-form .toggle-box::before{
        left: 0;
        top: -275%;
        width: 100%;
        height: 300%;
        border-radius: 5vw;
        -webkit-border-radius: 5vw;
        -moz-border-radius: 5vw;
        -ms-border-radius: 5vw;
        -o-border-radius: 5vw;
        transition: 1.5s ease-in-out;
        -webkit-transition: 1.5s ease-in-out;
        -moz-transition: 1.5s ease-in-out;
        -ms-transition: 1.5s ease-in-out;
        -o-transition: 1.5s ease-in-out;
}
    .container-form .toggle-panel{
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    .container-form .toggle-panel img{
        max-height: 80px;
    }
    .toggle-panel.toggle-left{ 
        top: 0; 
        height: 25%;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding-top: 0.5rem;
        gap: 1.5rem;
    }  
}
@media screen and (max-width: 480px) {
    .toggle-panel.toggle-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    .container-form .toggle-panel .btn{
        width: auto;
    }
    .container-form h1{
        font-size: clamp(1rem, 1.5rem, 2rem);
    }
}