body {
    font-family: Space Grotesk;
    margin: 0;
    background-color: rgb(221, 229, 250);
}

nav{
    background-color: rgb(71, 103, 194);
}

.logo{
    font-family: Permanent Marker;
    text-decoration: none;
    color: #CFD3F2;
}

.menu{
    background-color: rgb(71, 103, 194);
    border: none;
    padding: 4px;
}

.menu:hover{
    background-color: rgb(144, 165, 223);
    border: none;
}

.interiorMenu{
    background-color: rgb(71, 103, 194);
    padding: 0;
}

.interiorMenu a{
    color: #CFD3F2;
    text-decoration: none;
    display: block;
    font-size: 18px;
    padding: 18px 30px;
}

.interiorMenu a:hover{
    background-color: #cfd3f291;
}

.interiorMenu img{
    margin-right: 20px;
}

.contactos{
    width: 3.6rem;
    height: 3.6rem;
    background-color: rgb(71, 104, 194);
    border-radius: 10px;
}

.contactos img{
    transform: translate(-50%, -20%);
}

.contactos-box{
    position: absolute;
    transform: translate(0%, 695%);
}


.formulario{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: 620px;
    background-color: rgb(128, 141, 255);
    border-radius: 25px;
}

.formulario h1{
    font-family: "Permanent Marker";
    color:#CFD3F2;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(6, 71, 141, 0.322);
}

.formulario form{
    padding: 0 40px;
    box-sizing: border-box;
}

form .username{
    position: relative;
    border-bottom: 2px solid rgba(6, 71, 141, 0.322);
    margin: 60px 0;
}

.username input{
    color: #CFD3F2;
    width: 100%;
    padding: 0 5px;
    height: 40px;
    font-size: 20px;
    border: none;
    background: none;
    outline: none;
}

.username label{
    position: absolute;
    top: 50%;
    left: 5px;
    color: #CFD3F2;
    transform: translateY(-50%);
    font-size: 19px;
    pointer-events: none;
    transition: .5s;
}

.username span::before{
    content: '';
    position:absolute;
    top: 40px;
    left: 0;
    width: 0%;
    height: 2px;
    background: rgb(27, 141, 216) ;
    transition: .5s;
}

.username input:focus ~ label,
.username input:focus ~ label{
    top: -5px;
    color: rgb(27, 141, 216);
}

.username input:focus ~ span::before,
.username input:focus ~ span::before{
    width: 100%;
}

input[type="submit"]{
    margin-top: 7%;
    width: 100%;
    height: 50px;
    border: 1px solid rgb(6, 72, 141);
    background: rgb(6, 72, 141);
    border-radius: 25px;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    color: #CFD3F2;
}

input[type="submit"]:hover{
    border-color: rgb(4, 42, 82);
    transition: .5s;
}

.registrarse{
    text-align: center;
    color: #CFD3F2;
    margin: 40px;
}

.registrarse a{
    color: rgb(74, 74, 255);
    text-decoration: none;
}

.registrarse a:hover{
    text-decoration: underline;
}


body::-webkit-scrollbar{
    width: 10px;
    background-color: rgb(51, 51, 51);
}
body::-webkit-scrollbar-thumb{
    border-radius: 15px;
    background-color: rgb(36, 36, 36);
}

body::-webkit-scrollbar-thumb:hover{
    background-color: rgb(24, 24, 24);
}

.username input:focus ~ label,
.username input:not(:placeholder-shown) ~ label {
    top: -5px;
    color: rgb(6, 72, 141);
    font-size: 14px;
}
