/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Relief', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}


.app {
    margin-top: 10vh;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
}


.login-container {
    width: 100%;
}


.login-card {
    background: #1e293b;
    padding: 28px 22px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.4s ease-in-out;
}


.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo img {
    width: 100px;
    max-width: 100%;
}


.title {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}


.input-group {
    margin-bottom: 18px;
}


label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #94a3b8;
}


input {
    width: 95%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    font-size: 14px;
    text-align: center;
    transition: 0.3s;
}

input::placeholder {
    color: #64748b88;
}

input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,0.25);
}

input::placeholder {
    text-align: center;
}

button {
    width: 80%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    margin-top: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

button:disabled {
    background-color: #f8f8f877;
    cursor: not-allowed;
    color: #222;
    opacity: 0.7;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
}


.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    position: relative;
    border: 10px solid;
    box-sizing: border-box;
    animation: animloader 1s linear infinite alternate;
}
@keyframes animloader {
    0% {
    border-color: white rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}
    33% {
    border-color: white white rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}
    66% {
    border-color: white white white rgba(255, 255, 255, 0);
}
    100% {
    border-color: white white white white;
}
} 

#respuesta {
    margin-top: 10px;
}

p {
    color: white;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}



.redord {
    display: flex;
    flex-direction: row;

}

.redord input, .redord label {
    display: flex;
    flex-direction: row;
}

#recordar {
    width: 23px;
}


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

.img-casco, .img-esconder {
    width: 25px;
    height: 25px;
    margin: 5px;
}


/*  Desktop  */
@media (min-width: 768px) {

    body {
        align-items: center;
    }

    .app {
        max-width: 420px;
    }

    .login-card {
        padding: 35px 30px;
        border-radius: 24px;
    }

    .logo img {
        width: 50%;
    }

}
