


* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(rgba(57, 57, 57, 0.253), rgba(0, 0, 0, 0.401)), url('../img/imagen11.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(3px) contrast(120%);
    font-family: "Poppins", sans-serif;
}


.titulo {
    position: absolute;
    top: 2vh;
    padding: 10px 5px;
    background: linear-gradient(135deg, rgba(0,100,255,0.22), rgba(90, 90, 90, 0.344));
    border-radius: 45px 50px 20px 35px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0, 179, 255, 0.264);
    padding: 0 20px 0 20px;
    animation-name: blurIn;
    animation-timing-function:cubic-bezier(0.215, 0.610, 0.355, 1);
    animation-delay: 2s;
    animation-duration: 2s;
    animation-fill-mode: both;
}

@keyframes blurIn {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.titulo h2 {
    font-family: "Audiowide";
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 0 5px #000000;
    font-size: 50px;
    letter-spacing: 15px;
    transition: text-shadow .4s ease-in;
}


.titulo h2:hover {
    text-shadow: 0 5px 10px rgba(23, 144, 231, 0.623);
}



form {
    background: rgba(183, 181, 181, 0.48);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-top: 5rem;
    padding: 40px 50px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}


form h1 {
    color: #111212;
    font-size: 27px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}


label {
    display: block;
    text-align: center;
    margin: 10px 0 5px 5px;
    font-weight: 600;
    font-size: 17px;
    color: #000000;
    text-shadow: 0 0 2px rgba(114, 114, 114, 0.304);
}


input {
    margin: 5px;
    width: 80%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    color: #043131;
    text-align: center;
    font-size: 18px;
}

input:focus {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 180, 219, 0.5);
    transform: scale(1.02);
}

button {
    margin-top: 20px;
    width: 80%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg, #00b4db, #0083b0);
    box-shadow: 0 4px 12px rgba(0, 131, 176, 0.4);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #0083b0, #00b4db);
    box-shadow: 0 0 15px rgba(0, 131, 176, 0.6);
    transform: scale(1.05);
}


p {
    margin-top: 20px;
    color: #ffb9b9;
    font-weight: 600;
    background-color: rgb(44, 44, 44);
    padding: 5px;
    border-radius: 8px;
    font-family:"Alkatra", system-ui;
    font-size: 20px;
}

.respuesta {
    position: absolute;
    bottom: 3rem;
    padding: 0 5px 0 5px;
    border-radius: 25px;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 50px;
    aspect-ratio: 1;
    display: none;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
}
.loader::before,
.loader::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}
.loader::before {
    border-color: #f03355 #0000;
    animation: inherit; 
    animation-duration: .5s;
    animation-direction: reverse;
}
.loader::after {
    margin: 8px;
}
@keyframes l16 { 
    100%{transform: rotate(1turn)}
}


.input-user {
    display: flex;
    align-items: center;
}

.user {
    width: 25px;
    height: 25px;

}


.input-password {
    display: flex;
    align-items: center;
}


.invisible {
    width: 25px;
    height: 25px;
    margin: 5px;
}





@media (max-width: 480px) {
    body {
        display: flex;
        margin: 0;
        align-items: center;
        justify-content: center;
    }

.titulo {
    position: absolute;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: fit-content;
}

.titulo h2 {
    font-size: 30px;
    margin: 0;
    text-align: center; 
}


    form {
        margin-top: 50px;
        padding: 30px 25px;
        max-width: 85%;
        border-radius: 15px;
    }

    form h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    label {
        font-size: 15px;
        margin: 8px 0 3px;
    }

    input {
        width: 70%;
        padding: 10px;
        font-size: 16px;
    }

    button {
        width: 65%;
        font-size: 15px;
        padding: 10px;
    }

    p {
        font-size: 14px;
    }

    .respuesta {
    position: absolute;
    bottom: 10rem;
}
}

/* === Tablets === */
@media (min-width: 481px) and (max-width: 768px) {
    form {
        max-width: 420px;
        padding: 35px 40px;
    }

    form h1 {
        font-size: 26px;
    }

    input {
        width: 90%;
        font-size: 17px;
    }

    button {
        width: 85%;
    }
}
