body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
}

.background-panel {
    flex: 1;
    background-image: url('https://soporte.trascendit-corp.com/layouts/default/resources/images/fondo_portal.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-panel {
    width: 30%;
    min-width: 300px;
    background-color: #2c3e50;
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-panel h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-panel form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-panel label {
    color: #fff;
    font-size: 14px;
}

.login-panel input[type="text"],
.login-panel input[type="password"],
.login-panel input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.login-panel input[type="submit"],
.login-panel input[type="button"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.login-panel input[type="submit"]:hover,
.login-panel input[type="button"]:hover {
    background-color: #45a049;
}

.login-panel .error-message {
    color: #ff0000;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.background-panel img {
    width: 150px;
    position: absolute;
    bottom: 20px;
}

.background-panel h3 {
    color: #fff;
    position: absolute;
    bottom: 60px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .background-panel {
        display: none;
    }
    .login-panel {
        width: 100%;
        height: 100vh;
    }
}

/* Estilos de la ventana modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
