@import url('https://fonts.googleapis.com/css2?family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Winky Sans", sans-serif;
 }

 body {
     width: 100%;
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh;
     background: #cd7828;
     background-size: cover;
     background-position: center;
 }

 .box {
     position: relative;
     width: 370px;
     height: 450px;
     background: #c32508;
     border-radius: 10px;
     overflow: hidden;
 }

 .box::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 370px;
     height: 450px;
     background: linear-gradient(60deg, transparent, #c32508, #c32508);
     transform-origin: bottom right;
     animation: animate 6s linear infinite;
 }

 .box::after {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 370px;
     height: 450px;
     background: linear-gradient(60deg, transparent, #c32508, #c32508);
     transform-origin: bottom right;
     animation: animate 6s linear infinite;
     animation-delay: -3s;
 }

 @keyframes animate {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 form {
     position: absolute;
     inset: 10px;
     border-radius: 10px;
     background: linear-gradient(to right, #ff3d19, #ff7b4b);
     z-index: 10;
     padding: 30px 30px;
     display: flex;
     flex-direction: column;
 }

 h2 {
     color: #c32508;
     font-size: 35px;
     font-weight: 500;
     text-align: center;
 }

 .input-box {
     position: relative;
     width: 300px;
     margin-top: 35px;
 }

 .input-box input {
     position: relative;
     width: 100%;
     padding: 20px 10px 10px;
     background: transparent;
     border: none;
     outline: none;
     color: #fff;
     font-size: 1em;
     letter-spacing: .05em;
     z-index: 10;
 }

 input[type="submit"] {
     font-size: 20px;
     border: none;
     outline: none;
     background: #c32508;
     color: #fff;
     padding: 5px;
     margin-top: 40px;
     border-radius: 90px;
     font-weight: 600;
     cursor: pointer;
 }

 input[type="submit"]:active {
     background: linear-gradient(90deg, #c32508, #d9138a);
     opacity: .8;
 }

 .input-box span {
     position: absolute;
     left: 0;
     padding: 20px 10px 10px;
     font-size: 1em;
     color: #fff;
     pointer-events: none;
     letter-spacing: .05em;
     transition: .5s;
 }

 .input-box input:valid~span,
 .input-box input:focus~span {
     color: #c32508;
     transform: translateX(-10px) translateY(-30px);
     font-size: .75em;
 }

 .input-box i {
     position: absolute;
     left: 0;
     bottom: 0;
     width: 100%;
     height: 2px;
     background: rgb(159, 44, 10);
     border-radius: 4px;
     transition: .5s;
     pointer-events: none;
     z-index: 9;
 }

 .input-box input:valid~i,
 .input-box input:focus~i {
     height: 44px;
     background: rgba(245, 26, 26, 0.5);
 }

 .links {
     display: flex;
     justify-content: space-between;
 }

 .links a {
     margin: 25px 0;
     font-size: 1em;
     color: #8f8f8f;
     text-decoration: none;
 }

 .links a:hover,
 .links a:nth-child(2) {
     color: #c32508;
 }

 .links a:nth-child(2):hover {
     color: #d9138a;
 }