/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #405D72;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Estilos base para el popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 300px; /* Ajusta el ancho máximo para móviles */
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
}

.popup p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.popup button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #405D72;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup button:hover {
    background-color: #405D72;
}

.login-content {
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-welcome-container {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    width: 100%;
}

.login-welcome-text h1 {
    font-size: 40px;
    color: #fff;
    margin: 0 auto 10px;
    width: 60%;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.info-container {
    padding: 20px;
    text-align: left;
    flex: 1;
    color: #fff;
    margin-left: 5%;
}

.info-container p{
    font-size: 20px;
}

.login-container {
    position: relative;
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.login-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
}

.overlay-login {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.login-form {
    position: relative;
    z-index: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    width: 60%;
    border-radius: 8px;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.form-group input:focus {
    outline: none;
    border-color: #405D72;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.login-actions a {
    color: #405D72;
    text-decoration: none;
    font-size: 14px;
}

.login-actions a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: #405D72;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #005fa3;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
    background-image: url('{{ url_for("static", filename="images/login-inversores.jpeg") }}');
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    .login-form {
        width: 90%;
    }
    .login-welcome-text h1 {
        font-size: 20px;
        width: 90%;
    }
    .login-container{
        left: auto;
    }
}

@media (max-width: 480px) {
    .login-welcome-text h1 {
        font-size: 20px;
        width: 90%;
    }
    .btn {
        width: 100%;
    }
}

/* Estilos para el banner de cookies */
.cookie-banner {
    position: fixed; /* Fija el banner en la pantalla */
    bottom: 0; /* Lo coloca en la parte inferior */
    left: 0;
    right: 0;
    background: #333; /* Color de fondo */
    color: #fff; /* Color del texto */
    padding: 15px;
    text-align: center;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.cookie-banner button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    background: #4CAF50; /* Color del botón Aceptar */
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.cookie-banner button.reject {
    background: #f44336; /* Color del botón Rechazar */
}