body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

@keyframes flip3D {
    from {
        /* Gira sobre el eje Y (vertical) */
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.login-container {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    perspective: 1000px;
}

.logo-login {
    /* --- MODIFICADO: Dimensiones fijas para un círculo perfecto --- */
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover; 
    animation-name: flip3D;
    animation-duration: 9s;
    animation-iteration-count: infinite; 
    animation-timing-function: linear; 
}

h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

p {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
}

.form-group button {
    width: 100%;
    padding: 0.8rem;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #004494;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}