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

.login-container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.login-image {
    flex: 1;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.company-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background-color: #000;
}

h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #000;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #0056b3;
}

.form-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.form-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .login-image {
        display: none; /* Amaga la imatge en dispositius petits per optimitzar l'espai */
    }

    .login-form-container {
        padding: 20px;
    }
}

/* Estils del selector d'idioma */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#language-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    background-color: #f8f9fa;
}

/* Modificació a .login-form-container per permetre el posicionament absolut del selector */
.login-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative; /* Clau per al posicionament absolut */
}
