@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'popins', sans-serif;
}

body 
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('galaxy.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
        background-attachment: fixed;

}

.box
{
    position: relative;
    width: 380px;
    height: 420px;
    background: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
}

.box::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background:  linear-gradient(0deg, transparent, transparent, #0524d3, #0524d3, #0524d3);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;

}

.boxline
{
position: absolute;
top:0;
inset: 0;
}

.boxline::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background:  linear-gradient(0deg, transparent, transparent, #d10707, #d10707, #d10707);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -1.5s;

}

.box::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background:  linear-gradient(0deg, transparent, transparent, #0524d3, #0524d3, #0524d3);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;

}

.boxline::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background:  linear-gradient(0deg, transparent, transparent, #d10707, #d10707, #d10707);
    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: #585858;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.box form h2
{
        display: flex;
    justify-content: center;
    margin-bottom: 20px;

}

.box form h1
{
    color: #fff;
    font-weight: 300;
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
    letter-spacing:  0.1em;
}


.box form .inbox 
{
    position: relative;
    width: 300px;
    margin-top: 20px;
}

.box form .inbox input
{
    position: relative;
    width: 100%;
    padding: 20px 5px 10px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5S;
    z-index: 10;
}

.box form .inbox span
{
    position: absolute;
    left: 0;
    padding: 20PX 10PX 10PX;
    pointer-events: none;
    color: #8F8F8F;
    font-size: 1em;
    letter-spacing:  0.05em;
    transition: 0.5s;

}

.box form .inbox input:valid ~ span,
.box form .inbox input:focus ~ span
{
    color: #fff;
    font-size: 0.75em;
    transform: translateY(-34px);
}

.box form .inbox i
{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: #fff;
border-radius: 4px;
overflow: hidden;
transition: 0.5s;
pointer-events: none;
}

.box form .inbox input:valid ~ i,
.box form .inbox input:focus ~ i
{
    height: 44px;
}

.box form input[type="submit"]
{
    border: none;
    outline: none;
    padding: 9px 25px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    margin-top: 30px;
}

