
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('../images/login-background.jpg') no-repeat center center fixed; /* Imagen de fondo */
    background-size: cover; 
}


.container {
    position: relative;
    z-index: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 30px; 
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 10px;
    width: 100%;
    max-width: 450px; 
    box-sizing: border-box;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Título principal */
h2 {
    text-align: center;
    margin-bottom: 30px; 
    font-size: 32px; 
    color: #ecf0f1;
    font-weight: bold;
    letter-spacing: 1px;
}


.form-group {
    margin-bottom: 25px; 
}

label {
    font-size: 18px; 
    color: #f4f6f7;
    margin-bottom: 10px; 
    display: block;
    font-weight: 500;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 16px; 
    font-size: 18px; 
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}


button {
    width: 100%;
    padding: 16px;
    background-color: #28a745; 
    color: white;
    font-size: 18px; 
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #218838; 
    transform: translateY(-2px);
}

button:active {
    background-color: #1e7e34;
    transform: translateY(1px);
}


.error {
    color: red;
    font-size: 16px; 
    margin-bottom: 20px; 
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s ease;
}


@keyframes shake {
    0% { transform: translateX(-5px); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@media (max-width: 500px) {
    .container {
        padding: 30px 20px; 
    }

    h2 {
        font-size: 28px; 
    }

    input[type="text"], input[type="password"] {
        font-size: 16px;
    }

    button {
        font-size: 16px; 
    }
}
