.login-container {
    display: flex;
    height: 100vh;
}

.login-gradient {
    background: linear-gradient(to bottom right, #2c2f33, #23272a);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 20px;
}

.login-gradient h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.login-gradient p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.login-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    background-color: #e9ecef; /* Fondo gris */
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff; /* Card blanco */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        padding: 0; /* Eliminar márgenes */
    }

    .login-gradient {
        display: none; /* Ocultar el lado del degradado */
    }

    .login-form-container {
        flex: 1;
        height: 100%;
        background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Fondo degradado ocupando toda la pantalla */
        color: white;
        padding: 20px; /* Separación en los costados */
    }

    .login-card {
        background-color: #ffffff; /* Card blanco */
        color: black;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Mantener sombra en el formulario */
        margin: 0 auto; /* Centrar el formulario horizontalmente */
        border-radius: 10px; /* Bordes redondeados */
    }
}

/* Forzar estilo de botones de SweetAlert en la página de login para mejorar contraste */
.swal2-container .swal2-popup .swal2-confirm,
.swal2-container .swal2-popup .swal2-styled.swal2-confirm,
.swal2-container .swal2-popup .swal2-button--confirm {
    background-color: #0d6efd !important; /* Bootstrap primary */
    color: #ffffff !important;
    border: 1px solid #0a58ca !important;
    box-shadow: none !important;
}

.swal2-container .swal2-popup .swal2-cancel,
.swal2-container .swal2-popup .swal2-styled.swal2-cancel,
.swal2-container .swal2-popup .swal2-button--cancel {
    background-color: #6c757d !important; /* Bootstrap secondary */
    color: #ffffff !important;
    border: 1px solid #5c636a !important;
}

/* Hover states */
.swal2-container .swal2-popup .swal2-confirm:hover { background-color: #0b5ed7 !important; }
.swal2-container .swal2-popup .swal2-cancel:hover { background-color: #5a6268 !important; }

/* Asegurar tamaño y alineación del botón */
.swal2-container .swal2-popup .swal2-actions { gap: .5rem; }
.swal2-container .swal2-popup .swal2-button { min-width: 96px; }