body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    /*background: linear-gradient(150deg, #6C3483, #58D68D);*/
    background-image: url("../imagenes/padel_background.jpg");
    background-size: cover;
    background-position: 30% 15%;
    height: 100vh;
}

/*tablets*/
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }
}

/* moviles */
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 20px;
    }
}

.formulario{
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, .50%);
    width: 400px;
    background: #fafafa;
    border: 3px solid #fafafa;
    backdrop-filter: blur(0.4rem);
    border-radius: 10px;
}

.formulario h1 {
    text-align: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid silver;
}

.formulario form {
    padding: 0 40px;
    box-sizing: border-box;
}

form .username {
    position: relative;
    border-bottom: 2px solid #adadad;
    margin: 30px 0;
}

.username input {
    width: 100%;
    padding: 0 5px;
    height: 40px;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

.username label {
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}

.username span::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6C3483;
    transition: .5s;
}

.username input:focus ~ label,
.username input:not(:placeholder-shown) + label {
    top: -5px;
    color: #6C3483;
}

.username input:focus ~ span::before,
.username input:focus ~ span::before{
    width: 100%;
}

input[type="submit"]{
    width: 100%;
    height: 50px;
    border: 1px solid;
    background: #6C3483;
    border-radius: 25px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    outline: none;
}

input[type="submit"]:hover{
    border-color: #853ea1;
    transition: .5s;
}

#mensaje {
    color: red;
    font-size: 14px;
}

.login {
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
    color: black;
}

.login a {
    color: blue;
    text-decoration: none;
}

.login a:hover {
    text-decoration: underline;
}

#casas {
    display: flex;
    justify-content: center;
}

button {
    width: 13%;
    height: 30px;
    border: 1px solid;
    border-radius: 25px;
    font-size: 18px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    outline: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
