@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#032f03, #09043f);
    overflow: hidden;
}

.wrapper {
    position: relative;
    width: 400px;
    height: 500px;
}

.form-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.wrapper.animate-signUp .form-wrapper.sign-in {
    transform: rotate(7deg);
    animation: animateRotate .7s ease-in-out forwards;
    animation-delay: .3s;
}

.wrapper.animate-signIn .form-wrapper.sign-in {
    animation: animateSignIn 1.5s ease-in-out forwards;
}

@keyframes animateSignIn {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-500px);
    }

    100% {
        transform: translateX(0) rotate(7deg);
    }
}

.wrapper .form-wrapper.sign-up {
    transform: rotate(7deg);
}

.wrapper.animate-signIn .form-wrapper.sign-up {
    animation: animateRotate .7s ease-in-out forwards;
    animation-delay: .3s;
}

@keyframes animateRotate {
    0% {
        transform: rotate(7deg);
    }

    100% {
        transform: rotate(0);
        z-index: 1;
    }
}

.wrapper.animate-signUp .form-wrapper.sign-up {
    animation: animateSignUp 1.5s ease-in-out forwards;
}

@keyframes animateSignUp {
    0% {
        transform: translateX(0);
        z-index: 1;
    }

    50% {
        transform: translateX(500px);
    }

    100% {
        transform: translateX(0) rotate(7deg);
    }
}

h2 {
    font-size: 30px;
    color: #555;
    text-align: center;
}

.input-group {
    position: relative;
    width: 320px;
    margin: 30px 0;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #333;
    padding: 0 5px;
    pointer-events: none;
    transition: .5s;
}

.input-group input {
    width: 100%;
    height: 40px;
    font-size: 16px;
    color: #333;
    padding: 0 10px;
    background: transparent;
    border: 1px solid #333;
    outline: none;
    border-radius: 5px;
}

.input-group input:focus~label,
.input-group input:valid~label {
    top: 0;
    font-size: 12px;
    background: #fff;
}

.forgot-pass {
    margin: -15px 0 15px;
}

.forgot-pass a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.forgot-pass a:hover {
    text-decoration: underline;
}

.btn {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to right, #2196f3, #e91e63);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    outline: none;
}

.sign-link {
    font-size: 14px;
    text-align: center;
    margin: 25px 0;
}

.sign-link p {
    color: #333;
}

.sign-link p a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.sign-link p a:hover {
    text-decoration: underline;
}
/* *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
 
 }
 body{
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh;
     background: white;
 }
 .box{
     position: relative;
     width: 480px;
     height: 520px;
     background: #f3eded;
     border-radius: 8px;
     overflow: hidden;
 }
 .box::before{
 content: '';
 position: absolute;
 top: -50%;
 left: -50%;
 width: 380px;
 height: 420px;
 background: linear-gradient(0deg,transparent,transparent,#45f3ff,#45f3ff,#45f3ff);
 z-index: 1;
 transform-origin: bottom right;
 animation: animate 6s linear infinite;
 
 }
 .box::after{
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 380px;
     height: 420px;
     background: linear-gradient(0deg,transparent,transparent,#45f3ff,#45f3ff,#45f3ff);
     z-index: 1;
     transform-origin: bottom right;
     animation: animate 6s linear infinite;
     animation-delay: -3s;
     
     }
     .border
     {
         position: absolute;
         top: 0;
         inset: 0; 
     }
     .border::before
     {
 content: '';
 position: absolute;
 top: -50%;
 left: -50%;
 width: 380px;
 height: 420px;
 background: linear-gradient(0deg,transparent,transparent,#ff2770,#ff2770,#ff2770);
 z-index: 1;
 transform-origin: bottom right;
 animation: animate 6s linear infinite;
 animation-delay: -1.5s;
     }
     .border::after
     {
 content: '';
 position: absolute;
 top: -50%;
 left: -50%;
 width: 380px;
 height: 420px;
 background: linear-gradient(0deg,transparent,transparent,#ff2770,#ff2770,#ff2770);
 z-index: 1;
 transform-origin: bottom right;
 animation: animate 6s linear infinite;
 animation-delay: -4.5s;
     }
 @keyframes animate
 {
 0%
 {
     transform: rotate(0deg);
 }
 100%
 {
     transform: rotate(360deg);
 }
 }
 .box form{
     position: absolute;
    inset: 4px;
     background: #f2eded;
     padding: 50px 40px;
     border-radius: 8px;
     z-index: 2;
     display: flex;
     flex-direction: column;
 }
 .box form h2{
    color: #0c0c0c;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1em;
 }
 .box form .inputBox{
     position: relative;
     width: 300px;
     margin-top: 35px;
 }
 .box form .inputBox input
 {
     position: relative;
     width: 100%;
     padding: 20px 10px 10px;
     background: transparent;
     outline: none;
     border: none;
     box-shadow: none;
     color: #ebecf2;
     font-size: 1em;
     letter-spacing: 0.05em;
     transition: 0.5s;
     z-index: 10;
 
 }
 .box form .inputBox span
 {
     position: absolute;
     left: 0;
     padding: 20px 0px 10px;
     pointer-events: none;
    color: #f4ebeb;
     font-size: 1em;
     letter-spacing: 0.05em;
     transition: 0.5s;
 }
 .box form .inputBox input:valid~span,
 .box form .inputBox input:focus~span
 {
     color: #eae0e0;
     font-size: 0.75em;
      transform: translateY(-34px);
 }
 .box form .inputBox
 {
     position: absolute;
     left: 0;
     bottom: 0;
     width: 100%;
     height: 2px;
     background: #f6f3f3;
     border-radius: 4px;
     overflow: hidden;
     transition: 0.5s;
     pointer-events: none;
 
 }
 .box form .inputBox input:valid~i,
 .box form .inputBox input:focus~i
 {
 height: 44px;
 }
 .box form .links
 {
 display: flex;
 justify-content: space-between;
 }
 .box form .links a
 {
 margin: 10px 0;
 font-size: 0.75em;
 color: #ece4e4;
 text-decoration: none;
 }
 .box form .links a:hover,
 .box form .links a:nth-child(2)
 {
     color: #fff;
 }
 .box form input[type="submit"]
 {
     border: none;
     outline: none;
     position: relative;
     padding: 9px 25px;
     background: #fff;
     cursor: pointer;
     font-size: 0.9em;
     border-radius: 4px;
     font-weight: 600;
     width: 100px;
     margin-top: 10px;
 }
 .box form input[type="submit"]:active
 {
 opacity: 0.8;
 
 }
  */