/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    background: url('../Imagenes/fondo5.svg') no-repeat center center/cover;
    animation: moveBackground 15s linear infinite alternate, fadeIn 1.5s ease-in-out;
    padding: 20px; 
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes moveBackground {
    0% { background-position: center 0; }
    100% { background-position: center -150px; }
}

.login-container {
    background: rgba(255, 255, 255, 0.85); 
    padding: 40px; 
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 100%;
    max-width: 450px;
    animation: slideIn 1s ease-in-out;
    color: #1e293b;
}

@keyframes slideIn {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    width: 100%;
    max-width: 200px; 
    margin-bottom: 20px; 
    animation: logoGlow 1.5s infinite alternate ease-in-out, logoBounce 2s infinite;
    filter: drop-shadow(0px 0px 18px rgba(0, 255, 255, 0.8));
}

h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Grupos de entrada */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #adb5bd;
    border-radius: 10px;
    font-size: 16px;
    background: #f8f9fa;
    color: #333;
    transition: border 0.3s, background 0.3s;
}

/* Botón de inicio de sesión */
.login-btn {
    background: linear-gradient(135deg, #0056b3, #1e293b);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0px 4px 12px rgba(15, 23, 42, 0.5);
    margin-bottom: 15px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1e293b, #334155);
    transform: scale(1.05);
}

.login-btn:active {
    background: #0f172a;
    transform: scale(0.98);
}

/* Botones de usuario */
.user-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.user-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50%;
    padding: 14px;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: 1px solid #cbd5e1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #1e293b;
    cursor: pointer;
    padding-left: 10px;
}

.user-box img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.user-box:hover {
    background: linear-gradient(135deg, #b0bec5, #d1d9e1);
    transform: scale(1.05);
}

.user-box:active {
    background: #a8b9c8;
    transform: scale(0.98);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 20px;
        background-size: cover;
    }

    .login-container {
        width: 90%;
        padding: 25px;
    }

    .logo {
        max-width: 150px;
    }

    h2 {
        font-size: 20px;
    }

    .input-group input {
        padding: 10px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 16px;
    }

    .user-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .user-box {
        width: 100%;
        justify-content: center;
    }

    .user-box img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }

    .logo {
        max-width: 120px;
    }

    h2 {
        font-size: 18px;
    }

    .input-group input {
        padding: 8px;
        font-size: 13px;
    }

    .login-btn {
        padding: 10px;
        font-size: 14px;
    }

    .user-box {
        padding: 10px;
        font-size: 12px;
    }
}
