@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: 'Poppins', sans-serif;
}

body{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
    background: url('./imagen.jpg') no-repeat;

    background-size: cover;
    background-position: center;
    background-blend-mode: saturation;
}

.caja{
    position: relative;
    width: 370px;
    height: 450px;
    background: #1c1c1c;
    border-radius: 20px 20px;
    overflow: hidden;
}

.caja::before{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 370px;
    height: 450px;
    background: linear-gradient(60deg, transparent, #6fccf4, #6fccf4);
    transform-origin: bottom right;
    animation: animar 6s linear infinite;
}

.caja::after{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 370px;
    height: 450px;
    background: linear-gradient(60deg, transparent, #fff, #fff);
    transform-origin: bottom right;
    animation: animar 6s linear infinite;
    animation-delay: -3s;
}

@keyframes animar{
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

form{
    position: absolute;
    inset: 2px;
    border-radius: 50px 5px;
    background: rgba(0, 0, 0, 0.7);
    background-image: url('./imagen.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 10;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    background-blend-mode: saturation;
}

h2{
    color: #6fccf4;
    font-size: 35px;
    font-weight: 500;
    text-align: center;
}

.caja-input{
    position: relative;
    width: 300px;
    margin-top: 35px;
}

.caja-input input{
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: .05em;
    z-index: 10;
}

input[type="submit"]{
    font-size: 20px;
    border: none;
    outline: none;
    background: #6fccf4;
    padding: 5px;
    margin-top: 40px;
    border-radius: 90px;
    font-weight: 600;
    cursor: pointer;
}

input[type="submit"]:active{
    background: linear-gradient(90deg, #6fccf4, #fff);
    opacity: .8;
}

.caja-input span{
    position: absolute;
    left: 0;
    padding: 20px 10px 10px;
    font-size: 1em;
    color: #8f8f8f;
    pointer-events: none;
    letter-spacing: .05em;
    transition: .5s;
}

.caja-input input:valid ~ span,
.caja-input input:focus ~ span{
    color: #6fccf4;
    transform: translateX(-10px) translateY(-30px);
    font-size: .75em;
}

.caja-input i{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #6fccf4;
    border-radius: 4px;
    transition: .5s;
    pointer-events: none;
    z-index: 9;
}

.caja-input input:valid ~ i,
.caja-input input:focus ~ i{
    height: 44px;
    background: #6fccf4;
}

.enlace{
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.enlace a{
    margin: 25px 0;
    font-size: 1em;
    color: #8f8f8f;
    text-decoration: none;
    text-align: center;
   
}

.enlace a:hover,
.enlace a:nth-child(2){
    color: #6fccf4;
    margin-top: -.3rem;
    
}

.enlace a:nth-child(2):hover{
    color: #fff;
}
