@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&dsplay=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body
{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #25272e;
    min-height: 100vh;
}
.box1
{
    position: relative;
    width: 400px;
    height: 500px;
    background: #191a1f;
    overflow: hidden;
    border-radius: 50px 5px;
}
.box1::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 400px;
    height: 500px;
    background: linear-gradient(90deg,transparent,#00ffff,#00ffff);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
}
.box1::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 400px;
    height: 500px;
    background: linear-gradient(90deg,transparent,#fa008a,#fa008a);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}
@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}
.box2
{
    position: absolute;
    inset: 2px;
    background: #28292d;
    z-index: 1;
    border-radius: 50px 5px;
}
.box3
{
    position: absolute;
    inset: 8px;
    width: 380px;
    height: 480px;
    background: #191a1f;
    overflow: hidden;
    border-radius: 50px 5px;
}
.box3::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 480px;
    background: linear-gradient(90deg,transparent,#00ffff,#00ffff);
    transform-origin: bottom right;
    animation: animate2 6s linear infinite;
}
.box3::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 480px;
    background: linear-gradient(90deg,transparent,#fa008a,#fa008a);
    transform-origin: bottom right;
    animation: animate2 6s linear infinite;
    animation-delay: -3s;
}
@keyframes animate2
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}
form
{
    position: absolute;
    inset: 2px;
    background: #28292d;
    z-index: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 50px 5px;
}
h2
{
    color: #00ffff;
    font-size: 35px;
    font-weight: 500;
}
.inputBox
{
    position: relative;
    width: 300px;
    margin-top: 35px;
}
.inputBox input
{
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: #161616;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 1;
}
.inputBox span
{
    position: absolute;
    left: 0;
    padding: 20px 10px 10px;
    color: #87a4bd;
    font-size: 1em;
    pointer-events: none;
    letter-spacing: 0.05em;
    transition: 0.5s;
}
.inputBox input:focus ~ span,
.inputBox input:valid ~ span
{
    color: #00ffff;
    transform: translateX(-10px) translateY(-30px);
    font-size: 0.8em;
}
.inputBox i
{
    position: absolute;
    left: 0;
    bottom: 0;
    background: #00ffff;
    width: 100%;
    height: 2px;
    border-radius: 5px;
    pointer-events: none;
    transition: 0.5s;
}
.inputBox input:focus ~ i,
.inputBox input:valid ~ i
{
    height: 44px;
}
input[type="submit"]
{
    margin-top: 50px;
    width: 300px;
    background: #00ffff;
    padding: 8px;
    border: none;
    outline: none;
    font-size: 20px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}
input[type="submit"]:hover
{
    border-radius: 50px;
    letter-spacing: 0.2em;
}
.links
{
    width: 300px;
    display: flex;
    justify-content: space-between;
}
.links a
{
    margin: 40px 0;
    color: #87a4bd;
    font-size: 1em;
    text-decoration: none;
}
.links a:hover,
.links a:nth-child(2)
{
    color: #00ffff;
}
.links a:nth-child(2):hover
{
    text-decoration: underline 2px;
    text-underline-offset: 5px;
}